ZF-12375: Zend_Form_Decorator_FormElements overwrites Translator assigned to a Form_Element when global Translator in Zend_Registry is present
Description
Zend_Form_Elements allow one to add a Translator. When another Translator like a global one in Zend_Registry is present the local Translator on the element is overwritten.
Zend_Form_Decorator_FormElements should check in render function if a translator is already present on the element and then not overwrite it with the one it got from the form.
Comments
Posted by Frank Brückner (frosch) on 2012-08-17T14:16:01.000+0000
Patch and unit test added.
Posted by Frank Brückner (frosch) on 2012-08-17T14:18:03.000+0000
Patch and unit tests for a {{hasTranslator}} method in {{DisplayGroup}} added.
Posted by Rob Allen (rob) on 2012-11-07T20:08:22.000+0000
Applied patch to trunk (25092) and release-1.12 (25093)