Permalink
Browse files

Merge branch 'hotfix/5920' into develop

Close #5920
  • Loading branch information...
2 parents 10a631b + 76b57d2 commit d98b1c6bfc4f35639f215e6b0bf6b363b6d98fbc @weierophinney weierophinney committed Mar 7, 2014
Showing with 5 additions and 1 deletion.
  1. +5 −1 library/Zend/Form/View/Helper/FormRow.php
@@ -10,6 +10,7 @@
namespace Zend\Form\View\Helper;
use Zend\Form\Element\Button;
+use Zend\Form\Element\MonthSelect;
use Zend\Form\ElementInterface;
use Zend\Form\Exception;
use Zend\Form\LabelAwareInterface;
@@ -178,7 +179,10 @@ public function render(ElementInterface $element)
// Multicheckbox elements have to be handled differently as the HTML standard does not allow nested
// labels. The semantic way is to group them inside a fieldset
$type = $element->getAttribute('type');
- if ($type === 'multi_checkbox' || $type === 'radio') {
+ if ($type === 'multi_checkbox'
+ || $type === 'radio'
+ || $element instanceof MonthSelect
+ ) {
$markup = sprintf(
'<fieldset><legend>%s</legend>%s</fieldset>',
$label,

0 comments on commit d98b1c6

Please sign in to comment.