diff --git a/views/bootstrap/class.Settings.php b/views/bootstrap/class.Settings.php index 3f2d0a93f..c6ac165b3 100644 --- a/views/bootstrap/class.Settings.php +++ b/views/bootstrap/class.Settings.php @@ -798,12 +798,22 @@ if(($kkk = $this->callHook('getFullSearchEngine')) && is_array($kkk)) case "attributedefinitions": $objtype = empty($conf['objtype']) ? 0 : $conf['objtype']; $attrtype = empty($conf['attrtype']) ? 0 : $conf['attrtype']; + $order = empty($conf['order']) ? '' : $conf['order']; $recs = $dms->getAllAttributeDefinitions($objtype, $attrtype); if($recs) { - echo ""; if($allowempty) echo ""; + if($order == 'keep') { + foreach($selections as $selid) { + if($rec = $dms->getAttributeDefinition($selid)) { + echo ""; + } + } + } foreach($recs as $rec) { + if($order == 'keep' && in_array($rec->getID(), $selections)) + continue; echo "