ZF-12375: Zend_Form_Decorator_FormElements overwrites Translator assigned to a Form_Element when global Translator in Zend_Registry is present

Issue Type: Bug Created: 2012-08-17T12:58:06.000+0000 Last Updated: 2012-11-07T20:08:22.000+0000 Status: Resolved Fix version(s): - 1.12.1 (18/Dec/12)

Reporter: Matthias Tylkowski (tylkomat) Assignee: Frank Brückner (frosch) Tags: - Zend_Form

  • zf-crteam-needsexpert
  • zf-crteam-review

Related issues: Attachments: - DisplayGroup.php.patch


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.


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)

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.