diff --git a/module/product/control.php b/module/product/control.php index 3de825c41e..7f03c3399f 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -166,7 +166,7 @@ class product extends control $this->view->moduleID = $moduleID; $this->view->branch = $branch; $this->view->branches = $this->loadModel('branch')->getPairs($productID); - $this->view->storyStages = $this->product->getStoryStages($stories); + $this->view->storyStages = $this->product->batchGetStoryStage($stories); $this->display(); } diff --git a/module/product/model.php b/module/product/model.php index 04aa787c6f..63d47b671e 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -385,19 +385,19 @@ class productModel extends model } /** - * Get story stages. + * Batch get story stage. * * @param array $stories. * @access public * @return array */ - public function getStoryStages($stories) + public function batchGetStoryStage($stories) { /* Set story id list. */ $storyIdList = array(); foreach($stories as $story) $storyIdList[$story->id] = $story->id; - return $this->loadModel('story')->getStoryStages($storyIdList); + return $this->loadModel('story')->batchGetStoryStage($storyIdList); } /** diff --git a/module/story/model.php b/module/story/model.php index c534eecd82..cbf145e7f9 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -1598,13 +1598,13 @@ class storyModel extends model } /** - * Get story stages. + * Batch get story stage. * * @param array $stories * @access public * @return array */ - public function getStoryStages($stories) + public function batchGetStoryStage($stories) { return $this->dao->select('*')->from(TABLE_STORYSTAGE) ->where('story')->in($stories)