mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
Change name() to getName(), trac 7736.
This commit is contained in:
parent
025ee424c4
commit
28b8da6d0b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user