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,
|
$attrs = array('name' => $id,
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'id' => $id);
|
'id' => $id);
|
||||||
if ($value) {
|
if (!is_null($value)) { // value can be 0 or ''
|
||||||
$attrs['value'] = $value;
|
$attrs['value'] = $value;
|
||||||
}
|
}
|
||||||
$this->element('input', $attrs);
|
$this->element('input', $attrs);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user