From a66cbf7731cefcc8a37c4c2a189b5effad327ba8 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Tue, 10 Jun 2025 05:30:03 +0000 Subject: [PATCH] * [unittest] code for unittest. --- module/story/tao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/tao.php b/module/story/tao.php index f86902972c..da77917165 100644 --- a/module/story/tao.php +++ b/module/story/tao.php @@ -2106,7 +2106,7 @@ class storyTao extends storyModel if(!empty($story->twins)) $title = $this->lang->story->subDivideTip['twinsSplit']; if(!empty($taskGroups[$story->id])) $title = sprintf($this->lang->story->subDivideTip['notWait'], $this->lang->story->hasDividedTask); if(!empty($caseGroups[$story->id])) $title = sprintf($this->lang->story->subDivideTip['notWait'], $this->lang->story->hasDividedCase); - if($story->grade >= $maxGradeGroup[$story->type]) $title = $this->lang->story->errorMaxGradeSubdivide; + if(isset($maxGradeGroup[$story->type]) && $story->grade >= $maxGradeGroup[$story->type]) $title = $this->lang->story->errorMaxGradeSubdivide; if($story->status != 'active' && $story->status != 'changing') $title = $this->lang->story->subDivideTip['notActive']; $actions[] = array('name' => 'batchCreate', 'hint' => $title, 'disabled' => true, 'icon' => 'split'); }