diff --git a/views/bootstrap/class.ViewFolder.php b/views/bootstrap/class.ViewFolder.php
index ea5d32fe3..71d39bab6 100644
--- a/views/bootstrap/class.ViewFolder.php
+++ b/views/bootstrap/class.ViewFolder.php
@@ -237,15 +237,22 @@ function folderSelected(id, name) {
$attrdefgrps = $folder->getAttributeDefintionGroupList(true, $f);
if($attrdefgrps) {
foreach($attrdefgrps as $attrdefgrp) {
- $attrdefs = $attrdefgrp['group']->getAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_all, SeedDMS_Core_AttributeDefinition::objtype_folder));
- echo "
| ".htmlspecialchars($attrdefgrp['group']->getName())." |
";
+ $attrdefs = $attrdefgrp['group']->getAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_all, SeedDMS_Core_AttributeDefinition::objtype_folder), SeedDMS_Core_AttributeDefinitionGroup::show_details);
if($attrdefs) {
+ echo "| ".htmlspecialchars($attrdefgrp['group']->getName())." |
";
foreach($attrdefs as $attrdefarr) {
$attrdef = $attrdefarr['attrdef'];
- if($attrdefarr['show'] & SeedDMS_Core_AttributeDefinitionGroup::show_details) {
- $attribute = $folder->getAttribute($attrdef);
- if($attribute)
+ $attribute = $folder->getAttribute($attrdef);
+ if($attribute) {
+ $arr = $this->callHook('showFolderAttribute', $folder, $attribute);
+ if(is_array($arr)) {
+ echo "";
+ echo "| ".$arr[0].": | ";
+ echo "".$arr[1].": | ";
+ echo "
";
+ } else {
$this->printAttribute($attribute);
+ }
}
}
}
@@ -256,7 +263,6 @@ function folderSelected(id, name) {
foreach($attributes as $attribute) {
$arr = $this->callHook('showFolderAttribute', $folder, $attribute);
if(is_array($arr)) {
- echo $txt;
echo "";
echo "| ".$arr[0].": | ";
echo "".$arr[1].": | ";