mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
extension config can filter attributes by type
This commit is contained in:
parent
f718f565ff
commit
8f6402c51f
|
@ -613,10 +613,9 @@ if(($kkk = $this->callHook('getFullSearchEngine')) && is_array($kkk))
|
|||
}
|
||||
break;
|
||||
case "attributedefinitions":
|
||||
if(empty($conf['objtype']))
|
||||
$recs = $dms->getAllAttributeDefinitions();
|
||||
else
|
||||
$recs = $dms->getAllAttributeDefinitions(explode(',', $conf['objtype']));
|
||||
$objtype = empty($conf['objtype']) ? 0 : $conf['objtype'];
|
||||
$attrtype = empty($conf['attrtype']) ? 0 : $conf['attrtype'];
|
||||
$recs = $dms->getAllAttributeDefinitions(explode(',', $objtype), explode(',', $attrtype));
|
||||
if($recs) {
|
||||
echo "<select class=\"chzn-select\"".($allowempty ? " data-allow-clear=\"true\"" : "")."\" name=\"extensions[".$extname."][".$confkey."][]\"".(!empty($conf['multiple']) ? " multiple" : "").(!empty($conf['size']) ? " size=\"".$conf['size']."\"" : "")." data-placeholder=\"".getMLText("select_attribute_value")."\">";
|
||||
if($allowempty)
|
||||
|
|
Loading…
Reference in New Issue
Block a user