From b1a4b4823fc37850da161d65640fa6f2c72e3abe Mon Sep 17 00:00:00 2001 From: Eduard Briem Date: Mon, 21 Nov 2016 09:20:46 +1300 Subject: [PATCH] force cast to string $this->dbObject('Content') in EditableLiteralField --- code/model/editableformfields/EditableLiteralField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/model/editableformfields/EditableLiteralField.php b/code/model/editableformfields/EditableLiteralField.php index 7887937..41f3508 100644 --- a/code/model/editableformfields/EditableLiteralField.php +++ b/code/model/editableformfields/EditableLiteralField.php @@ -145,7 +145,7 @@ class EditableLiteralField extends EditableFormField Convert::raw2htmlname($this->Name), Convert::raw2att($classes), $label, - $this->dbObject('Content') + (string)$this->dbObject('Content') ) );