BUGFIX: avoid error accessing Tab ID if TabSet has not been set

This commit is contained in:
Will Rossiter 2012-02-10 23:50:10 +13:00
parent 5bf79f8146
commit 37156b0270

View File

@ -47,7 +47,7 @@ class Tab extends CompositeField {
}
public function id() {
return $this->tabSet->id() . '_' . $this->id;
return ($this->tabSet) ? $this->tabSet->id() . '_' . $this->id : $this->id;
}
public function Fields() {