mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
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
Block a user