ZF-7235: FormErrors not taking Zend_Form setIsArray into account
Description
FormErrors function "_recurseForm" does not check for the setting "isArray" on the supplied zend form.
When using subforms the first if statement (ln. 372) is triggered. This behaviour is also wanted when using your main form as isArray. Because this makes the array multidimensional.
This is leading to a non functional FormErrors decorator. Because it will never get the errors into the foreach loop on ln 383.
I momentarily fixed it by addind "|| $form->isArray()" to the if statement on ln 372. Don't know if that is the correct fix but i thought i should share
Comments
Posted by Nicholas Calugar (njcalugar) on 2010-02-27T14:28:32.000+0000
The code below shows that the FormErrors decorator produces no output if the forms isArray flag is true.
Posted by Christian Albrecht (alab) on 2010-05-24T09:04:33.000+0000
Fixed in trunk r22270 and merged into 1.10 release branch