mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-07-15 08:58:10 +00:00
fix placeholder of select menu for attribute defs
This commit is contained in:
parent
b3bc78fb96
commit
51d0a273bc
|
@ -617,7 +617,7 @@ if(($kkk = $this->callHook('getFullSearchEngine')) && is_array($kkk))
|
||||||
$attrtype = empty($conf['attrtype']) ? 0 : $conf['attrtype'];
|
$attrtype = empty($conf['attrtype']) ? 0 : $conf['attrtype'];
|
||||||
$recs = $dms->getAllAttributeDefinitions($objtype, $attrtype);
|
$recs = $dms->getAllAttributeDefinitions($objtype, $attrtype);
|
||||||
if($recs) {
|
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")."\" style=\"width: 100%;\">";
|
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_attrdef")."\" data-no_results_text=\"".getMLText('unknown_attrdef')."\" style=\"width: 100%;\">";
|
||||||
if($allowempty)
|
if($allowempty)
|
||||||
echo "<option value=\"\"></option>";
|
echo "<option value=\"\"></option>";
|
||||||
foreach($recs as $rec) {
|
foreach($recs as $rec) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user