* Fix a bug.

This commit is contained in:
hufangzhou
2021-05-20 16:51:47 +08:00
parent 508ed10f05
commit 6dd99adfad
+1 -1
View File
@@ -1044,7 +1044,7 @@ class story extends control
$reviewers = $this->dao->select('reviewer')->from(TABLE_STORYREVIEW)->where('story')->eq($storyID)->andWhere('version')->eq($story->version)->fetchAll('reviewer');
if($story->status == 'draft' and $story->version == 1) unset($this->lang->story->reviewResultList['revert']);
if($story->status == 'changed') unset($this->lang->story->reviewResultList['reject']);
if($story->status == 'changed' and count($reviewers) > 1) unset($this->lang->story->reviewResultList['revert']);
if(count($reviewers) > 1) unset($this->lang->story->reviewResultList['revert']);
$this->view->title = $this->lang->story->review . "STORY" . $this->lang->colon . $story->title;
$this->view->position[] = html::a($this->createLink('product', 'browse', "product=$product->id&branch=$story->branch"), $product->name);