Skip to content

Commit

Permalink
Merge pull request #12 from FriendsOfSilverStripe/spekulatius-patch-1
Browse files Browse the repository at this point in the history
FIX: inheritage bug
  • Loading branch information
spekulatius authored Jul 22, 2016
2 parents bd1f79e + 9ef512d commit 6109c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/extensions/InheritageBySiteTreeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function getFromParentPage($dbField)
// ... check if it has this field...
if ($parentPage->hasField($dbField)) {
$result = $parentPage->$dbField;
} else {
} else if (get_class($parentPage) != 'SiteTree') {
// ... if not call its parent.
$result = $parentPage->getFromParentPage($dbField);
}
Expand Down

0 comments on commit 6109c2d

Please sign in to comment.