From 75d6678e2c40cf79c3de336648d73f26f2a56715 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 3 Aug 2016 13:26:08 +0200 Subject: [PATCH] pass context for attributes to hooks and [document|folder]ListRow() --- views/bootstrap/class.ViewFolder.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/views/bootstrap/class.ViewFolder.php b/views/bootstrap/class.ViewFolder.php index 71d39bab6..f3583d07a 100644 --- a/views/bootstrap/class.ViewFolder.php +++ b/views/bootstrap/class.ViewFolder.php @@ -244,11 +244,11 @@ function folderSelected(id, name) { $attrdef = $attrdefarr['attrdef']; $attribute = $folder->getAttribute($attrdef); if($attribute) { - $arr = $this->callHook('showFolderAttribute', $folder, $attribute); + $arr = $this->callHook('showFolderAttribute', $folder, $attribute, SeedDMS_Core_AttributeDefinitionGroup::show_details); if(is_array($arr)) { echo ""; echo "".$arr[0].":"; - echo "".$arr[1].":"; + echo "".$arr[1].""; echo ""; } else { $this->printAttribute($attribute); @@ -261,11 +261,11 @@ function folderSelected(id, name) { $attributes = $folder->getAttributes(); if($attributes) { foreach($attributes as $attribute) { - $arr = $this->callHook('showFolderAttribute', $folder, $attribute); + $arr = $this->callHook('showFolderAttribute', $folder, $attribute, SeedDMS_Core_AttributeDefinitionGroup::show_details); if(is_array($arr)) { echo ""; echo "".$arr[0].":"; - echo "".$arr[1].":"; + echo "".$arr[1].""; echo ""; } else { $this->printAttribute($attribute); @@ -323,7 +323,7 @@ function folderSelected(id, name) { if(is_string($txt)) echo $txt; else { - echo $this->folderListRow($subFolder); + echo $this->folderListRow($subFolder, SeedDMS_Core_AttributeDefinitionGroup::show_list); } } @@ -333,7 +333,7 @@ function folderSelected(id, name) { if(is_string($txt)) echo $txt; else { - echo $this->documentListRow($document, $previewer); + echo $this->documentListRow($document, $previewer, false, 0, SeedDMS_Core_AttributeDefinitionGroup::show_list); } }