* Fix bug#15524.
This commit is contained in:
@@ -85,7 +85,6 @@ class task extends control
|
||||
|
||||
$execution = $this->execution->getById($executionID);
|
||||
$taskLink = $this->createLink('execution', 'browse', "executionID=$executionID&tab=task");
|
||||
$storyLink = $this->session->storyList ? $this->session->storyList : $this->createLink('execution', 'story', "executionID=$executionID");
|
||||
|
||||
/* Set menu. */
|
||||
$this->execution->setMenu($execution->id);
|
||||
@@ -167,7 +166,7 @@ class task extends control
|
||||
}
|
||||
elseif($this->post->after == 'toStoryList')
|
||||
{
|
||||
$response['locate'] = $storyLink;
|
||||
$response['locate'] = $this->createLink('execution', 'story', "executionID=$executionID");
|
||||
return $this->send($response);
|
||||
}
|
||||
else
|
||||
@@ -280,7 +279,6 @@ class task extends control
|
||||
{
|
||||
$taskLink = $this->createLink('execution', 'browse', "executionID=$executionID");
|
||||
}
|
||||
$storyLink = $this->session->storyList ? $this->session->storyList : $this->createLink('execution', 'story', "executionID=$executionID");
|
||||
|
||||
/* Set menu. */
|
||||
$this->execution->setMenu($execution->id);
|
||||
|
||||
@@ -178,12 +178,15 @@ function setStoryModule()
|
||||
var link = createLink('story', 'ajaxGetInfo', 'storyID=' + storyID);
|
||||
$.getJSON(link, function(storyInfo)
|
||||
{
|
||||
$('#module').val(storyInfo.moduleID);
|
||||
$("#module").trigger("chosen:updated");
|
||||
if(storyInfo)
|
||||
{
|
||||
$('#module').val(storyInfo.moduleID);
|
||||
$("#module").trigger("chosen:updated");
|
||||
|
||||
$('#storyEstimate').val(storyInfo.estimate);
|
||||
$('#storyPri' ).val(storyInfo.pri);
|
||||
$('#storyDesc' ).val(storyInfo.spec);
|
||||
$('#storyEstimate').val(storyInfo.estimate);
|
||||
$('#storyPri' ).val(storyInfo.pri);
|
||||
$('#storyDesc' ).val(storyInfo.spec);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user