mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
BUGFIX: Modded getParentClassName() for when $this->BaseClass is not set
This commit is contained in:
parent
ce3af93a50
commit
c89a8d02ce
@ -151,6 +151,10 @@ class Comment extends DataObject {
|
||||
* @return string
|
||||
*/
|
||||
public function getParentClassName() {
|
||||
$default = 'SiteTree';
|
||||
if(!$this->BaseClass) {
|
||||
return $default;
|
||||
}
|
||||
return $this->BaseClass;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user