Skip to content

Commit

Permalink
Fix Fatal error: Argument 1 passed to TabSet::push() must be an insta…
Browse files Browse the repository at this point in the history
…nce of Tab

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.1.1@43627 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
ajoneil authored and Sam Minnee committed Feb 2, 2011
1 parent 957ba1f commit eea80ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forms/TabSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function fieldByName($name) {
/**
* Add a new child field to the end of the set.
*/
public function push(Tab $field) {
public function push($field) {
parent::push($field);
$field->setTabSet($this);
}
Expand Down

0 comments on commit eea80ac

Please sign in to comment.