Fix page draft publish

This commit is contained in:
joyqi 2022-06-01 23:50:36 +08:00
parent 88c3bfe13f
commit 1d0e253281

View File

@ -405,7 +405,7 @@ class Edit extends Contents implements ActionInterface
$realId = 0;
/** 是否是从草稿状态发布 */
$isDraftToPublish = ('post_draft' == $this->type);
$isDraftToPublish = ('post_draft' == $this->type || 'page_draft' == $this->type);
$isBeforePublish = ('publish' == $this->status);
$isAfterPublish = ('publish' == $contents['status']);