ZF-12020: Modify Zend_Form::isValid() to ignore flagged elements
In both of these older tickets, Matthew Weier O'Phinney states that by setting a form element's ignore status to 'true', both Zend_Form::getValues() and Zend_Form::isValid() will ignore that element. This is indeed the case for Zend_Form::getValues(), but Zend_Form::isValid() does not effectively ignore user input from elements that are supposed to be ignored. A glance at the source code confirms that the phrase 'ignore' appears nowhere in the isValid() function of either Zend_Form or Zend_Form_Element.
Say I have a read-only 'due date' field which is flagged to be ignored -- the user might manipulate this field using a browser such as Chrome, and when the isValid() method is called on the form, the value of 'due date' is set to the user-modified value. Not exactly the behavior one might expect.