From faca76f6a96910fb2b7681e80cbd566c53b6f9d0 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 31 Jan 2020 16:13:45 +0100 Subject: [PATCH] Do not run restrict validation check for type taglist-account if free entries are allowed --- api/src/Etemplate/Widget/Taglist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Taglist.php b/api/src/Etemplate/Widget/Taglist.php index 24102f9854..19ae736f56 100644 --- a/api/src/Etemplate/Widget/Taglist.php +++ b/api/src/Etemplate/Widget/Taglist.php @@ -144,7 +144,7 @@ class Taglist extends Etemplate\Widget foreach((array) $value as $key => $val) { - if($this->type == 'taglist-account') + if($this->type == 'taglist-account' && !$this->attrs['allowFreeEntries']) { // If in allowed options, skip account check to support app-specific options if(count($allowed) > 0 && in_array($val, $allowed)) continue;