From 5271f149989d7259afdbeb39cade9b9b0affa212 Mon Sep 17 00:00:00 2001 From: David Toews Date: Mon, 1 Oct 2018 16:20:33 -0600 Subject: [PATCH] Allows placeholder value of '0' --- code/Model/EditableFormField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Model/EditableFormField.php b/code/Model/EditableFormField.php index ddff655..5b52c80 100755 --- a/code/Model/EditableFormField.php +++ b/code/Model/EditableFormField.php @@ -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); } }