diff --git a/module/product/config/search.php b/module/product/config/search.php index 9985a77588..7de4b17af7 100644 --- a/module/product/config/search.php +++ b/module/product/config/search.php @@ -2,7 +2,7 @@ global $app; $app->loadLang('story'); $config->product->search['module'] = 'story'; -$config->product->search['fields']['title'] = $lang->story->title; +$config->product->search['fields']['title'] = $lang->story->name; $config->product->search['fields']['id'] = $lang->story->id; $config->product->search['fields']['keywords'] = $lang->story->keywords; $config->product->search['fields']['status'] = $lang->story->status; diff --git a/module/product/model.php b/module/product/model.php index daae48f606..4f528fb582 100755 --- a/module/product/model.php +++ b/module/product/model.php @@ -720,14 +720,13 @@ class productModel extends model /* Get module data. */ $projectID = ($this->app->tab == 'project' && empty($projectID)) ? $this->session->project : $projectID; + if($projectID) $this->lang->story->title = $this->lang->story->name; $searchConfig['params']['module']['values'] = $this->productTao->getModulesForSearchForm($productID, $products, $branch, $projectID); $gradePairs = $this->loadModel('story')->getGradePairs($storyType, 'all'); if($storyType == 'all') { - $searchConfig['fields']['title'] = $this->lang->story->name; - $gradePairs = array(); $gradeList = $this->loadModel('story')->getGradeList(''); foreach($gradeList as $grade)