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