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'):?>