diff --git a/module/execution/control.php b/module/execution/control.php index d2c4fa021a..e6b21bc307 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -3533,7 +3533,14 @@ class execution extends control } /* Build the search form. */ - $actionURL = $this->createLink($this->app->rawModule, 'linkStory', "objectID=$objectID&browseType=bySearch&queryID=myQueryID&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID&storyType=$storyType"); + if($this->app->rawModule == 'execution') + { + $actionURL = $this->createLink($this->app->rawModule, 'linkStory', "objectID=$objectID&browseType=bySearch&queryID=myQueryID&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID&extra=&storyType=$storyType"); + } + else + { + $actionURL = $this->createLink($this->app->rawModule, 'linkStory', "objectID=$objectID&browseType=bySearch&queryID=myQueryID&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID&storyType=$storyType"); + } $branchGroups = $this->loadModel('branch')->getByProducts(array_keys($products)); $this->execution->buildStorySearchForm($products, $branchGroups, $modules, $queryID, $actionURL, 'linkStory', $object, $storyType);