From bfccfd4f7940e419a89192ee2de45733eb818fd2 Mon Sep 17 00:00:00 2001 From: liuruogu Date: Mon, 19 Sep 2022 08:33:05 +0000 Subject: [PATCH] * Fix bug #27570. --- module/story/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index c3700993ac..e9805b9794 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -472,6 +472,8 @@ class story extends control */ public function batchCreate($productID = 0, $branch = 0, $moduleID = 0, $storyID = 0, $executionID = 0, $plan = 0, $storyType = 'story', $extra = '') { + $this->view->hiddenProduct = false; + $this->view->hiddenPlan = false; /* Set menu. */ if($executionID) { @@ -508,8 +510,6 @@ class story extends control } $this->view->execution = $execution; /* Hidden some fields of projects without products. */ - $this->view->hiddenProduct = false; - $this->view->hiddenPlan = false; if($execution->type === 'project' || $execution->type === 'kanban') {