Merge pull request #766 from leenzhu/fix-752

fix #752
This commit is contained in:
joyqi 2018-07-28 12:35:06 +08:00 committed by GitHub
commit df5f747975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,8 +257,9 @@ class Widget_Contents_Post_Edit extends Widget_Abstract_Contents implements Widg
/** 如果它本身不是草稿, 需要删除其草稿 */
if (!$isDraftToPublish && $this->draft) {
$this->deleteDraft($this->draft['cid']);
$this->deleteFields($this->draft['cid']);
$cid = $this->draft['cid'];
$this->deleteDraft($cid);
$this->deleteFields($cid);
}
/** 直接将草稿状态更改 */