{"action":"created","issue":{"url":"https://api.github.com/repos/zendframework/zf2/issues/7604","labels_url":"https://api.github.com/repos/zendframework/zf2/issues/7604/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zf2/issues/7604/comments","events_url":"https://api.github.com/repos/zendframework/zf2/issues/7604/events","html_url":"https://github.com/zendframework/zf2/issues/7604","id":92977021,"number":7604,"title":"disable_inarray_validator does not work","user":{"login":"googlle","id":2455916,"avatar_url":"https://avatars.githubusercontent.com/u/2455916?v=3","gravatar_id":"","url":"https://api.github.com/users/googlle","html_url":"https://github.com/googlle","followers_url":"https://api.github.com/users/googlle/followers","following_url":"https://api.github.com/users/googlle/following{/other_user}","gists_url":"https://api.github.com/users/googlle/gists{/gist_id}","starred_url":"https://api.github.com/users/googlle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googlle/subscriptions","organizations_url":"https://api.github.com/users/googlle/orgs","repos_url":"https://api.github.com/users/googlle/repos","events_url":"https://api.github.com/users/googlle/events{/privacy}","received_events_url":"https://api.github.com/users/googlle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-04T06:22:46Z","updated_at":"2015-07-05T19:19:07Z","closed_at":null,"body":"disable_inarray_validator does not work\r\nI get this message\r\n```php\r\n[month] => Array\r\n(\r\n       [notInArray] => The input was not found in the haystack\r\n)\r\n```\r\n\r\nForm\r\n```php\r\n$this->add(array(\r\n\t'name' => 'month',\r\n\t'type' => 'select',\r\n\t'attributes' => array(\r\n\t\t'placeholder' => 'Month',\r\n\t\t'class' => 'form-control',\r\n\t\t'id' => 'month',\r\n\t\t'required' => false,\r\n\t),\r\n\t'options' => array(\r\n\t\t'value_options' => $months,\r\n\t\t'disable_inarray_validator' => true,\r\n\t),\r\n));\r\n```\r\n\r\nFilter\r\n```php\r\n$this->add(array(\r\n\t'name' => 'month',\r\n\t'required' => false,\r\n\t'filters' => array(\r\n\t\tarray('name' => 'StripTags'),\r\n\t\tarray('name' => 'StringTrim'),\r\n\t\tarray('name' => 'Int'),\r\n\t),\r\n\t'validators' => array(\r\n\t\tarray(\r\n\t\t\t'name' => 'Zend\\Validator\\Digits',\r\n\t\t),\r\n\t\tarray(\r\n\t\t\t'name' => 'InArray',\r\n\t\t\t'options' => array(\r\n\t\t\t\t'haystack' => $months,\r\n\t\t\t),\r\n\t\t),\r\n\t)\r\n));\r\n```\r\n\t\t"},"comment":{"url":"https://api.github.com/repos/zendframework/zf2/issues/comments/118653294","html_url":"https://github.com/zendframework/zf2/issues/7604#issuecomment-118653294","issue_url":"https://api.github.com/repos/zendframework/zf2/issues/7604","id":118653294,"user":{"login":"kehigginbotham","id":5298747,"avatar_url":"https://avatars.githubusercontent.com/u/5298747?v=3","gravatar_id":"","url":"https://api.github.com/users/kehigginbotham","html_url":"https://github.com/kehigginbotham","followers_url":"https://api.github.com/users/kehigginbotham/followers","following_url":"https://api.github.com/users/kehigginbotham/following{/other_user}","gists_url":"https://api.github.com/users/kehigginbotham/gists{/gist_id}","starred_url":"https://api.github.com/users/kehigginbotham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kehigginbotham/subscriptions","organizations_url":"https://api.github.com/users/kehigginbotham/orgs","repos_url":"https://api.github.com/users/kehigginbotham/repos","events_url":"https://api.github.com/users/kehigginbotham/events{/privacy}","received_events_url":"https://api.github.com/users/kehigginbotham/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T19:19:07Z","updated_at":"2015-07-05T19:19:07Z","body":"Correct me if I am wrong, but I believe 'disable_inarray_validator' only disables the built-in InArray validator on the standard Zend\\Form\\Element\\Select. If you add an additional InArray, as in your filter, it is not covered by this option.\r\n\r\nMy advice is to remove the one from your filter, and you should see the expected functionality. "}}