From efa2e76e6c8074885164b691837dd337524d5f44 Mon Sep 17 00:00:00 2001 From: maxlapko Date: Tue, 15 Jul 2014 19:04:58 +0400 Subject: [PATCH] Incorrect calculate for $this->_hidden property When we want use select2 for tags -> initially "tags" property may be empty. --- widgets/Select2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/Select2.php b/widgets/Select2.php index a64bb72..489136b 100755 --- a/widgets/Select2.php +++ b/widgets/Select2.php @@ -89,7 +89,7 @@ public function init() $this->_hidden = !empty($this->pluginOptions['data']) || !empty($this->pluginOptions['query']) || !empty($this->pluginOptions['ajax']) || - !empty($this->pluginOptions['tags']); + isset($this->pluginOptions['tags']); if (!isset($this->data) && !$this->_hidden) { throw new InvalidConfigException("No 'data' source found for Select2. Either the 'data' property must be set OR one of 'data', 'query', 'ajax', or 'tags' must be set within 'pluginOptions'."); }