|
There was an error in my previous proposed solution. Here is the correct solution: Swap this: /**
return false; For this: /**
return false; At Zend/Form/Element.php The decorator will be deleted using his class name only if is not found by key name. 2nd try. Replace this: /** * Remove a single decorator * * @param string $name * @return bool */ public function removeDecorator($name) { $decorator = $this->getDecorator($name); if ($decorator) { $name = get_class($decorator); unset($this->_decorators[$name]); return true; } return false; } For this: /** * Remove a single decorator * * @param string $name * @return bool */ public function removeDecorator($name) { $decorator = $this->getDecorator($name); if ($decorator) { if ( !isset( $this->_decorators[$name] ) ) $name = get_class($decorator); unset($this->_decorators[$name]); return true; } return false; } At Zend/Form/Element.php The decorator will be deleted using his class name only if is not found by the key name. Please evaluate and categorize as necessary. Scheduling for next mini release. Fixed in trunk and 1.5 release branch as of r9365; applied fixes to form, element, and display group classes, as the issue was present in each. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
My proposed solution:
Swap this:
For this:
At Zend/Form/Element.php