From b1c483be84b4507ea94db43cccb1944c0e0e4f18 Mon Sep 17 00:00:00 2001 From: mayue Date: Wed, 8 Dec 2021 16:52:50 +0800 Subject: [PATCH] * Optimize code #17248,17246. --- module/task/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/control.php b/module/task/control.php index 24a1e4dca6..4102345afa 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -313,7 +313,7 @@ class task extends control $this->view->showFields = $this->config->task->custom->batchCreateFields; $story = $this->story->getByID($storyID); - if($story and empty($moduleID)) + if($story) { $moduleID = $story->module; $stories = $this->story->getExecutionStoryPairs($executionID, 0, 'all', $moduleID, 'short');