Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'hotfix/5920' into develop

Close #5920
  • Loading branch information...
commit d98b1c6bfc4f35639f215e6b0bf6b363b6d98fbc 2 parents 10a631b + 76b57d2
@weierophinney weierophinney authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 library/Zend/Form/View/Helper/FormRow.php
View
6 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,
Please sign in to comment.
Something went wrong with that request. Please try again.