Skip to content
Browse files

don't overwrite form factory if already set

  • Loading branch information...
1 parent 21e9e2c commit 6ce846e5290ba60cb905bd6f0252139655451c61 @radnan committed Feb 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/Zend/Form/FormElementManager.php
View
2 library/Zend/Form/FormElementManager.php
@@ -84,7 +84,7 @@ public function __construct(ConfigInterface $configuration = null)
public function injectFactory($element)
{
if ($element instanceof FormFactoryAwareInterface) {
- $element->setFormFactory(new Factory($this));
+ $element->getFormFactory()->setFormElementManager($this);
}
}

0 comments on commit 6ce846e

Please sign in to comment.
Something went wrong with that request. Please try again.