From f36272ed99894b059309fc93be7a9017ba017ffa Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 4 Mar 2016 14:14:15 +0800 Subject: [PATCH] * fix bug #772. --- module/story/config.php | 2 +- module/story/js/review.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/module/story/config.php b/module/story/config.php index e0f9b9841f..45392b203b 100644 --- a/module/story/config.php +++ b/module/story/config.php @@ -19,7 +19,7 @@ $config->story->review = new stdclass(); $config->story->create->requiredFields = 'title'; $config->story->change->requiredFields = 'title'; $config->story->close->requiredFields = 'closedReason'; -$config->story->review->requiredFields = 'assignedTo,reviewedBy,result'; +$config->story->review->requiredFields = 'assignedTo,reviewedBy'; $config->story->editor = new stdclass(); $config->story->editor->create = array('id' => 'spec,verify', 'tools' => 'simpleTools'); diff --git a/module/story/js/review.js b/module/story/js/review.js index 04776e8422..d44a6b7135 100644 --- a/module/story/js/review.js +++ b/module/story/js/review.js @@ -5,6 +5,7 @@ function switchShow(result) $('#rejectedReasonBox').show(); $('#preVersionBox').hide(); $('#assignedTo').val('closed'); + $('#assignedTo').trigger("chosen:updated"); } else if(result == 'revert') { @@ -13,6 +14,7 @@ function switchShow(result) $('#duplicateStoryBox').hide(); $('#childStoriesBox').hide(); $('#assignedTo').val(assignedTo); + $('#assignedTo').trigger("chosen:updated"); } else { @@ -22,6 +24,7 @@ function switchShow(result) $('#childStoriesBox').hide(); $('#rejectedReasonBox').hide(); $('#assignedTo').val(assignedTo); + $('#assignedTo').trigger("chosen:updated"); } }