mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: avoid error accessing Tab ID if TabSet has not been set
This commit is contained in:
parent
5bf79f8146
commit
37156b0270
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user