Do not run restrict validation check for type taglist-account if free entries are allowed

This commit is contained in:
Hadi Nategh 2020-01-31 16:13:45 +01:00
parent 23449272e2
commit faca76f6a9

View File

@ -144,7 +144,7 @@ class Taglist extends Etemplate\Widget
foreach((array) $value as $key => $val) 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 in allowed options, skip account check to support app-specific options
if(count($allowed) > 0 && in_array($val, $allowed)) continue; if(count($allowed) > 0 && in_array($val, $allowed)) continue;