Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
leenzhu committed Jul 21, 2018
1 parent a2d21f1 commit 68db3cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions var/Widget/Contents/Post/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,9 @@ protected function publish(array $contents)

/** 如果它本身不是草稿, 需要删除其草稿 */
if (!$isDraftToPublish && $this->draft) {
$this->deleteDraft($this->draft['cid']);
$this->deleteFields($this->draft['cid']);
$cid = $this->draft['cid'];
$this->deleteDraft($cid);
$this->deleteFields($cid);
}

/** 直接将草稿状态更改 */
Expand Down

0 comments on commit 68db3cd

Please sign in to comment.