mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Tab->fieldByName() was checking the property "Name" on the child elements, when it's actually a method call instead
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@56179 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
db411726d7
commit
ef1033111a
@ -38,7 +38,7 @@ class Tab extends CompositeField {
|
||||
*/
|
||||
public function fieldByName($name) {
|
||||
foreach($this->children as $child) {
|
||||
if($name == $child->Name) return $child;
|
||||
if($name == $child->Name()) return $child;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user