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'));