mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
FIX BlogPost::onBeforePublish() should also trigger parent::onBeforePublish() if exists
e.g. if Page::onBeforePublish() exists.
This commit is contained in:
parent
bf666edf7e
commit
2b3309468c
@ -493,6 +493,10 @@ class BlogPost extends Page
|
||||
*/
|
||||
public function onBeforePublish()
|
||||
{
|
||||
if (method_exists(get_parent_class($this), 'onBeforePublish')) {
|
||||
parent::onBeforePublish();
|
||||
}
|
||||
|
||||
/**
|
||||
* @var DBDatetime $publishDate
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user