Change name() to getName(), trac 7736.

This commit is contained in:
jakr 2012-08-05 15:59:49 +03:00
parent 025ee424c4
commit 28b8da6d0b

View File

@ -91,7 +91,7 @@ class Widget extends DataObject {
$output = '';
$fields = $this->getCMSFields();
foreach($fields as $field) {
$name = $field->Name();
$name = $field->getName();
$field->setValue($this->getField($name));
$renderedField = $field->FieldHolder();
$renderedField = preg_replace("/name=\"([A-Za-z0-9\-_]+)\"/", "name=\"Widget[" . $this->ID . "][\\1]\"", $renderedField);