From a66b34c8fcda5a921c81de669a4d9ac25022fa93 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 13 Jan 2017 15:13:44 +0100 Subject: [PATCH] Disable autocomplete_url for taglists in hooks with no sel_options --- preferences/inc/class.preferences_settings.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/preferences/inc/class.preferences_settings.inc.php b/preferences/inc/class.preferences_settings.inc.php index de5c43973e..08c30b51f2 100644 --- a/preferences/inc/class.preferences_settings.inc.php +++ b/preferences/inc/class.preferences_settings.inc.php @@ -394,6 +394,12 @@ class preferences_settings if ((string)$attrs[$n] !== '') $tpl->setElementAttribute($tab.'['.$setting['name'].']', $name, $attrs[$n]); } break; + case 'taglist': + if ($setting['no_sel_options']) + { + $tpl->setElementAttribute ($tab.'['.$setting['name'].']', 'autocomplete_url', ''); + } + break; } // move values/options to sel_options array if (isset($setting['values']) && is_array($setting['values']) && !$setting['no_sel_options'])