From fc34acd37e344e8b4ce30b9e7877f8b90f12c0c1 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 21 Jan 2025 10:27:25 +0100 Subject: [PATCH] get attr def from attr def grp --- views/bootstrap/class.Search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/views/bootstrap/class.Search.php b/views/bootstrap/class.Search.php index 7197ede87..ec0b6ce36 100644 --- a/views/bootstrap/class.Search.php +++ b/views/bootstrap/class.Search.php @@ -894,7 +894,8 @@ $(document).ready(function() { foreach($attrdefgrps as $attrdefgrp) { if($attrdefs = $attrdefgrp->getAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_folder), SeedDMS_Core_AttributeDefinitionGroup::show_search)) { echo "".htmlspecialchars($attrdefgrp->getName()).""; - foreach($attrdefs as $attrdef) { + foreach($attrdefs as $attrdefl) { + $attrdef = $attrdefl['attrdef']; if($attrdef->getObjType() == SeedDMS_Core_AttributeDefinition::objtype_folder) { if($attrdef->getType() == SeedDMS_Core_AttributeDefinition::type_date) { $this->formField(htmlspecialchars($attrdef->getName().' ('.getMLText('from').')'), $this->getAttributeEditField($attrdef, !empty($attributes[$attrdef->getID()]['from']) ? getReadableDate(makeTsFromDate($attributes[$attrdef->getID()]['from'])) : '', 'attributes', true, 'from'));