From d33c07117792b10a71e0a7f2cdaea89e1ecdfafd Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 8 Dec 2021 16:10:09 +0800 Subject: [PATCH] * Fix bug #17259. --- module/testcase/control.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index 085b8ae52d..1f938d3fae 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -548,10 +548,6 @@ class testcase extends control $storyPairs = $this->loadModel('story')->getProductStoryPairs($productID, $branch === 'all' ? 0 : $branch); $storyPairs += $storyID ? array($storyID => $story->id . ':' . $story->title) : array(''); - /* Set module option menu. */ - $moduleOptionMenu = $this->tree->getOptionMenu($productID, $viewType = 'case', $startModuleID = 0, $branch === 'all' ? 0 : $branch); - $moduleOptionMenu['ditto'] = $this->lang->testcase->ditto; - /* Set custom. */ $product = $this->product->getById($productID); foreach(explode(',', $this->config->testcase->customBatchCreateFields) as $field) @@ -589,6 +585,11 @@ class testcase extends control $branches = $this->loadModel('branch')->getPairs($productID, 'active'); } + /* Set module option menu. */ + $moduleOptionMenu = $this->tree->getOptionMenu($productID, 'case', 0, $branch === 'all' ? 0 : $branch); + $moduleOptionMenu['ditto'] = $this->lang->testcase->ditto; + + $this->view->customFields = $customFields; $this->view->showFields = $showFields;