Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reorder element helper

  • Loading branch information...
commit 25b521a6cb78bcd422712cf99353c58c124364ec 1 parent c3a7d8c
@bakura10 bakura10 authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 library/Zend/Form/View/Helper/FormElement.php
View
8 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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.