Skip to content

Commit

Permalink
BUGFIX: avoid error accessing Tab ID if TabSet has not been set
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Feb 11, 2012
1 parent 5bf79f8 commit 37156b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forms/Tab.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function __construct($name) {
} }


public function id() { public function id() {
return $this->tabSet->id() . '_' . $this->id; return ($this->tabSet) ? $this->tabSet->id() . '_' . $this->id : $this->id;
} }


public function Fields() { public function Fields() {
Expand Down

0 comments on commit 37156b0

Please sign in to comment.