This commit is contained in:
王怡栋
2022-11-18 16:25:14 +08:00
parent 9274950e61
commit 29cddd773a
+4 -15
View File
@@ -1053,19 +1053,10 @@ class story extends control
$branchTagOption = array();
$products = array();
if($executionID)
{
/* The stories of project or execution. */
$execution = $this->execution->getByID($executionID);
$products = $this->loadModel('product')->getProducts($executionID);
}
else
{
/* The stories of my. */
$productIdList = array();
foreach($stories as $story) $productIdList[$story->product] = $story->product;
$products = $this->product->getByIdList($productIdList);
}
/* Get product id list by the stories. */
$productIdList = array();
foreach($stories as $story) $productIdList[$story->product] = $story->product;
$products = $this->product->getByIdList($productIdList);
foreach($products as $storyProduct)
{
@@ -1133,8 +1124,6 @@ class story extends control
}
}
$this->view->position[] = $this->lang->story->common;
$this->view->position[] = $this->lang->story->batchEdit;
$this->view->title = $this->lang->story->batchEdit;
$this->view->users = $users;
$this->view->priList = array('0' => '', 'ditto' => $this->lang->story->ditto) + $this->lang->story->priList;