1
0
mirror of https://github.com/silverstripe/silverstripe-userforms.git synced 2024-10-22 17:05:42 +02:00

using forTemplate() instead of (string) casting fixes unit test

This commit is contained in:
Eduard Briem 2016-11-21 10:48:10 +13:00
parent b1a4b4823f
commit c3ba8f42e1

View File

@ -145,7 +145,7 @@ class EditableLiteralField extends EditableFormField
Convert::raw2htmlname($this->Name), Convert::raw2htmlname($this->Name),
Convert::raw2att($classes), Convert::raw2att($classes),
$label, $label,
(string)$this->dbObject('Content') $this->dbObject('Content')->forTemplate()
) )
); );