Permalink
Browse files

[#8382] Prevent issue with checkboxes/radios causing text-parsing pro…

…blems with required validator
  • Loading branch information...
1 parent bb7c990 commit 0074f65d6119b52141d5c26d04fd93fad252a9ca Shaun McCormick committed Mar 18, 2013
@@ -2,6 +2,7 @@ Changelog for FormIt.
FormIt 2.2.0
====================================
+- [#8382] Prevent issue with checkboxes/radios causing text-parsing problems with required validator
- Fixed issue with custom error message for vTextPasswordConfirm not respected
- [#9457] Fixed issue with commas in values causing errors with FormItIsChecked & FormItIsSelected
- [#9576] Add ability to translate country options
@@ -355,7 +355,7 @@ public function required($key,$value) {
}
return $success ? true : $this->_getErrorMessage($key,'vTextRequired','formit.field_required',array(
'field' => $key,
- 'value' => $value,
+ 'value' => is_array($value) ? implode(',',$value) : $value,
));
}

0 comments on commit 0074f65

Please sign in to comment.