Merge pull request #818 from davejtoews/placeholder-0

Allows placeholder value of '0'
This commit is contained in:
Robbie Averill 2018-10-02 22:27:46 +02:00 committed by GitHub
commit dce70d74d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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