Skip to content
Permalink
Browse files

Fix so empty class isn't added to RadioWidget render

    (This fixes the tests that were broken)
  • Loading branch information...
lilHermit committed Jan 31, 2017
1 parent 3e05d22 commit 9b01a1e2251a6db67ee2668d2a99f7e72c37b83d
Showing with 0 additions and 7 deletions.
  1. +0 −7 src/View/Widget/RadioWidget.php
@@ -175,13 +175,6 @@ protected function _renderInput($val, $text, $data, $context)
}
if (!is_bool($data['label'])) {
if (isset($data['label']['class']) && is_string($data['label']['class'])) {
$data['label']['class'] = explode(' ', $data['label']['class']);
}
if (!isset($data['label']['class']) || !is_array($data['label']['class'])) {
$data['label']['class'] = [];
}
if (isset($radio['checked']) && $radio['checked']) {
$data['label'] = $this->_templates->addClass($data['label'], 'selected');
}

0 comments on commit 9b01a1e

Please sign in to comment.
You can’t perform that action at this time.