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:
Sean Harvey 2008-06-13 01:56:29 +00:00
parent db411726d7
commit ef1033111a

View File

@ -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;
}
}
}