From: Christian Weiske on
Hi all,


I am using HTML_QuickForm2_Renderer_Array with group_errors enabled.
Unfortunately, the 'errors' field in the array I get from toArray()
does not contain form errors, only element errors.

Is that a bug or expected behavior?

Example:

> $form = new HTML_QuickForm2(..);
> $user = $form->addElement(..);
> $user->addRule(..);
> $form->addRule(..)
> $renderer = HTML_QuickForm2_Renderer::factory('array');
> $ar = $renderer->toArray();

1) $ar['errors'] contains the user error
2) $ar['errors'] does not contain the form error

--
Regards/Mit freundlichen Grüßen
Christian Weiske

-=≡ Geeking around in the name of science since 1982 ≡=-