* Code for fix bug #32989.
This commit is contained in:
@@ -1267,9 +1267,14 @@ class story extends control
|
||||
|
||||
if($this->app->tab == 'project')
|
||||
{
|
||||
$module = 'projectstory';
|
||||
$method = 'view';
|
||||
$params = "storyID=$storyID";
|
||||
$module = 'projectstory';
|
||||
$method = 'view';
|
||||
$params = "storyID=$storyID";
|
||||
if(!$this->session->multiple)
|
||||
{
|
||||
$module = 'story';
|
||||
$params .= "&version=0¶m={$this->session->project}&storyType=$storyType";
|
||||
}
|
||||
}
|
||||
elseif($this->app->tab == 'execution')
|
||||
{
|
||||
@@ -1283,7 +1288,8 @@ class story extends control
|
||||
$method = 'view';
|
||||
$params = "storyID=$storyID&version=0¶m=0&storyType=$storyType";
|
||||
}
|
||||
return print(js::locate($this->createLink($module, $method, $params), 'parent'));
|
||||
|
||||
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink($module, $method, $params)));
|
||||
}
|
||||
|
||||
$this->commonAction($storyID);
|
||||
@@ -1800,9 +1806,6 @@ class story extends control
|
||||
$story = $this->story->getById($storyID);
|
||||
$product = $this->product->getById($story->product);
|
||||
|
||||
/* Set menu. */
|
||||
$this->product->setMenu($story->product, $story->branch);
|
||||
|
||||
/* Get reviewers. */
|
||||
$reviewers = $product->reviewer;
|
||||
if(!$reviewers and $product->acl != 'open') $reviewers = $this->loadModel('user')->getProductViewListUsers($product, '', '', '', '');
|
||||
|
||||
Reference in New Issue
Block a user