Allows placeholder value of '0'

This commit is contained in:
David Toews 2018-10-01 16:20:33 -06:00
parent 3c8e403ac2
commit 5271f14998
1 changed files with 1 additions and 1 deletions

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);
}
}