mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX call to $field->Name should be $field->Name() - see Form->Fields() for the correct way
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@55161 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
475361fafd
commit
3f8591a807
@ -259,7 +259,7 @@ class Form extends ViewableData {
|
||||
*/
|
||||
function dataFieldByName($name) {
|
||||
foreach($this->getExtraFields() as $field) {
|
||||
if(!$this->fields->dataFieldByName($field->Name)) $this->fields->push($field);
|
||||
if(!$this->fields->dataFieldByName($field->Name())) $this->fields->push($field);
|
||||
}
|
||||
|
||||
return $this->fields->dataFieldByName($name);
|
||||
|
Loading…
Reference in New Issue
Block a user