diff --git a/module/execution/control.php b/module/execution/control.php index a254d3166a..0c83b13bd1 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2671,7 +2671,8 @@ class execution extends control if(dao::isError()) return $this->sendError(dao::getError()); $this->loadModel('action')->create('story', $storyID, 'estimated', '', $executionID); - return $this->sendSuccess(array('load' => true, 'closeModal' => true)); + $link = $this->createLink('execution', 'storyEstimate', "executionID={$executionID}&storyID={$storyID}&round={$round}"); + return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'callback' => "loadModal(\"$link\", '#storyEstimateModal');")); } $estimateInfo = $this->story->getEstimateInfo($storyID, $round); diff --git a/module/story/config/dtable.php b/module/story/config/dtable.php index 9393408926..5bd877509e 100644 --- a/module/story/config/dtable.php +++ b/module/story/config/dtable.php @@ -335,6 +335,7 @@ $config->story->dtable->fieldList['actions']['actionsMap']['storyEstimate']['ico $config->story->dtable->fieldList['actions']['actionsMap']['storyEstimate']['hint'] = $lang->execution->storyEstimate; $config->story->dtable->fieldList['actions']['actionsMap']['storyEstimate']['data-size'] = 'sm'; $config->story->dtable->fieldList['actions']['actionsMap']['storyEstimate']['data-toggle'] = 'modal'; +$config->story->dtable->fieldList['actions']['actionsMap']['storyEstimate']['data-id'] = 'storyEstimateModal'; $config->story->dtable->fieldList['actions']['actionsMap']['unlink']['icon'] = 'unlink'; $config->story->dtable->fieldList['actions']['actionsMap']['unlink']['hint'] = $lang->execution->unlinkStory;