zendframework / zend-form

Form component from Zend Framework
BSD 3-Clause "New" or "Revised" License
69 stars 87 forks source link

Zend\Form\Element\Select default InArray validation broken #89

Open GeeH opened 8 years ago

GeeH commented 8 years ago

This issue has been moved from the zendframework repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html


Original Issue: https://api.github.com/repos/zendframework/zendframework/issues/7586 User: @phpManiac77 Created On: 2015-06-15T16:17:13Z Updated At: 2015-12-09T20:53:03Z Body Default in array validation does not work any more.

In method Zend\Form\Element\Select::setValueOptions() on line 80 $this->validator is checked against ! null. This is always false because $this->validator is nowhere set.


Comment

User: @demichl68 Created On: 2015-12-09T20:53:03Z Updated At: 2015-12-09T20:53:03Z Body As soon as getValidator() is called, $validator is not null anymore. getValidator() is called when getInputSpecification() is called.


michalbundyra commented 4 years ago

This repository has been closed and moved to laminas/laminas-form; a new issue has been opened at https://github.com/laminas/laminas-form/issues/39.