From dbd7e204581799f16733078ef789565bc0f33efe Mon Sep 17 00:00:00 2001 From: chaideqing Date: Fri, 12 Jan 2024 14:27:16 +0800 Subject: [PATCH] * Fix bug #43669. --- module/execution/control.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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);