Disable autocomplete_url for taglists in hooks with no sel_options

This commit is contained in:
Hadi Nategh 2017-01-13 15:13:44 +01:00
parent 78dea56bce
commit 032829a6e1

View File

@ -394,6 +394,12 @@ class preferences_settings
if ((string)$attrs[$n] !== '') $tpl->setElementAttribute($tab.'['.$setting['name'].']', $name, $attrs[$n]); if ((string)$attrs[$n] !== '') $tpl->setElementAttribute($tab.'['.$setting['name'].']', $name, $attrs[$n]);
} }
break; break;
case 'taglist':
if ($setting['no_sel_options'])
{
$tpl->setElementAttribute ($tab.'['.$setting['name'].']', 'autocomplete_url', '');
}
break;
} }
// move values/options to sel_options array // move values/options to sel_options array
if (isset($setting['values']) && is_array($setting['values']) && !$setting['no_sel_options']) if (isset($setting['values']) && is_array($setting['values']) && !$setting['no_sel_options'])