allow 0 or blank string in inputs
This commit is contained in:
parent
1e21af42a6
commit
767ff2f7ec
|
@ -176,7 +176,7 @@ class HTMLOutputter extends XMLOutputter
|
|||
$attrs = array('name' => $id,
|
||||
'type' => 'text',
|
||||
'id' => $id);
|
||||
if ($value) {
|
||||
if (!is_null($value)) { // value can be 0 or ''
|
||||
$attrs['value'] = $value;
|
||||
}
|
||||
$this->element('input', $attrs);
|
||||
|
|
Loading…
Reference in New Issue
Block a user