* [bug#57218,done,0.3h] add 1.5 level select and stories is empty error.

This commit is contained in:
tianshujie
2024-12-27 16:00:10 +08:00
committed by 刘梦艺
parent 9e5cc98cca
commit 1ee0968521
+2 -1
View File
@@ -1116,10 +1116,11 @@ class story extends control
$storyPairs[$story->id] = $story->title;
}
if(empty($stories)) return $this->send(array('result' => 'fail', 'message' => $this->lang->story->noStoryToTask, 'load' => $this->session->storyList));
if(empty($activeStories)) return $this->send(array('result' => 'fail', 'message' => $this->lang->story->noStoryToTask, 'load' => $this->session->storyList));
$this->view->title = $this->lang->story->batchToTask;
$this->view->executionID = $executionID;
$this->view->projectID = $projectID;
$this->view->syncFields = empty($_POST['fields']) ? array() : $_POST['fields'];
$this->view->hourPointValue = empty($_POST['hourPointValue']) ? 0 : $_POST['hourPointValue'];
$this->view->taskType = empty($_POST['type']) ? '' : $_POST['type'];