Permalink
Browse files

Reorder element helper

  • Loading branch information...
1 parent c3a7d8c commit 25b521a6cb78bcd422712cf99353c58c124364ec @bakura10 bakura10 committed Aug 27, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 library/Zend/Form/View/Helper/FormElement.php
@@ -58,13 +58,13 @@ public function render(ElementInterface $element)
return $helper($element);
}
- if ($element instanceof Element\MonthSelect) {
- $helper = $renderer->plugin('form_month_select');
+ if ($element instanceof Element\DateSelect) {
+ $helper = $renderer->plugin('form_date_select');
return $helper($element);
}
- if ($element instanceof Element\DateSelect) {
- $helper = $renderer->plugin('form_date_select');
+ if ($element instanceof Element\MonthSelect) {
+ $helper = $renderer->plugin('form_month_select');
return $helper($element);
}

0 comments on commit 25b521a

Please sign in to comment.