Permalink
Browse files

BUG:removed null FormField value. fixes #8088

  • Loading branch information...
1 parent 775567d commit 63dbb1c6c9cc93aaaf2dc74e046a4d958e680a0e g4b0 committed Jan 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 forms/FormField.php
View
@@ -125,7 +125,7 @@ public static function create_tag($tag, $attributes, $content = null) {
foreach($attributes as $k => $v) {
// Note: as indicated by the $k == value item here; the decisions over what to include in the attributes
// can sometimes get finicky
- if(!empty($v) || $v === '0' || $k == 'value') {
+ if(!empty($v) || $v === '0' || ($k == 'value' && $v !== null) ) {
$preparedAttributes .= " $k=\"" . Convert::raw2att($v) . "\"";
}
}

0 comments on commit 63dbb1c

Please sign in to comment.