mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-29 07:59:31 +02: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…
Reference in New Issue
Block a user