From 29cddd773a53d29ca7146a66fa2dd8ce64b7c2ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A1=E6=A0=8B?= Date: Fri, 18 Nov 2022 16:25:14 +0800 Subject: [PATCH] * fix bug #75779. --- module/story/control.php | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index bf6a2ef71d..5c9c92a74b 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -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;