Allows placeholder value of '0'
This commit is contained in:
parent
3c8e403ac2
commit
5271f14998
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue