Merge pull request #1075 from g4b0/8088-GroupedDropdownField-xhtml-strict-2

BUG:removed null FormField value. fixes #8088
This commit is contained in:
Ingo Schommer 2013-01-02 09:02:47 -08:00
commit 06f05d0e7a

View File

@ -125,7 +125,7 @@ class FormField extends RequestHandler {
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) . "\"";
}
}