* when need not review, set the status to active auto.

This commit is contained in:
wangchunsheng
2010-02-11 06:13:22 +00:00
parent f554d0d0f2
commit ce55cb6662

View File

@@ -106,6 +106,7 @@ class storyModel extends model
->setIF($this->post->assignedTo != $oldStory->assignedTo, 'assignedDate', $now)
->setIF($specChanged, 'version', $oldStory->version + 1)
->setIF($specChanged and $oldStory->status == 'active' and $this->post->needNotReview == false, 'status', 'changed')
->setIF($specChanged and $oldStory->status == 'draft' and $this->post->needNotReview, 'status', 'active')
->setIF($specChanged, 'reviewedBy', '')
->setIF($specChanged, 'closedBy', '')
->setIF($specChanged, 'closedReason', '')