Issues

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

Patch and unit test added.

Patch and unit tests for a {{hasTranslator}} method in {{DisplayGroup}} added.

Applied patch to trunk (25092) and release-1.12 (25093)