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 807e812f5b
commit a66b34c8fc

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