Skip to content
Browse files

Fix Fatal error: Argument 1 passed to TabSet::push() must be an insta…

…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...
1 parent 957ba1f commit eea80acc968a5bc40e0f71a1dbdbc829a508a251 @ajoneil ajoneil committed with sminnee
Showing with 1 addition and 1 deletion.
  1. +1 −1 forms/TabSet.php
View
2 forms/TabSet.php
@@ -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);
}

0 comments on commit eea80ac

Please sign in to comment.
Something went wrong with that request. Please try again.