Permalink
Browse files

Allow form collection to have any helper

  • Loading branch information...
1 parent c620291 commit 1d99516cbf1a7a757d1f03c54020f4a032cf044e @bakura10 bakura10 committed Sep 28, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 library/Zend/Form/View/Helper/FormCollection.php
@@ -15,6 +15,7 @@
use Zend\Form\ElementInterface;
use Zend\Form\Element\Collection as CollectionElement;
use Zend\Form\FieldsetInterface;
+use Zend\View\Helper\AbstractHelper as BaseAbstractHelper;
/**
* @category Zend
@@ -189,7 +190,7 @@ protected function getElementHelper()
$this->elementHelper = $this->view->plugin($this->getDefaultElementHelper());
}
- if (!$this->elementHelper instanceof AbstractHelper) {
+ if (!$this->elementHelper instanceof BaseAbstractHelper) {
// @todo Ideally the helper should implement an interface.
throw new RuntimeException('Invalid element helper set in FormCollection. The helper must be an instance of AbstractHelper.');
}

0 comments on commit 1d99516

Please sign in to comment.