Skip to content

Commit

Permalink
Merge pull request #110 from maxlapko/patch-1
Browse files Browse the repository at this point in the history
Incorrect calculate $this->_hidden property
  • Loading branch information
kartik-v committed Jul 15, 2014
2 parents 2ad8904 + efa2e76 commit d20293b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/Select2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'.");
}
Expand Down

0 comments on commit d20293b

Please sign in to comment.