diff --git a/module/action/control.php b/module/action/control.php index 7b32ec3af3..4613347f2f 100755 --- a/module/action/control.php +++ b/module/action/control.php @@ -125,7 +125,7 @@ class action extends control } /* Get the products name of story. */ - if($browseType == 'story' or 'requirement') + if(strpos(',story,requirement,', ",$browseType,") !== false) { $this->loadModel('story'); $storyIdList = array(); diff --git a/module/action/view/trash.html.php b/module/action/view/trash.html.php index 582c7c1cf2..bbe2216478 100755 --- a/module/action/view/trash.html.php +++ b/module/action/view/trash.html.php @@ -85,7 +85,7 @@ systemMode == 'new' and $currentObjectType == 'execution'):?> lang->project->project;?> - + lang->story->product;?> @@ -152,7 +152,7 @@ - + objectID]->productTitle;?> objectID]->productDeleted):?> diff --git a/module/my/model.php b/module/my/model.php index 6f359b99f1..4ff59e8679 100644 --- a/module/my/model.php +++ b/module/my/model.php @@ -504,7 +504,6 @@ class myModel extends model { $rawMethod = $this->app->rawMethod; $this->loadModel('execution'); - $this->app->loadConfig('execution'); $this->config->execution->search['module'] = $rawMethod . 'Task'; $this->config->execution->search['actionURL'] = $actionURL;