Allows placeholder value of '0'

This commit is contained in:
David Toews 2018-10-01 16:20:33 -06:00
parent 3c8e403ac2
commit 5271f14998

View File

@ -772,7 +772,7 @@ class EditableFormField extends DataObject
}
// if this field has a placeholder
if ($this->Placeholder) {
if (strlen($this->Placeholder) >= 0) {
$field->setAttribute('placeholder', $this->Placeholder);
}
}