From 30029901ae41b1f29db90a34d609beb1a226b0bd Mon Sep 17 00:00:00 2001 From: lixiaoyu Date: Thu, 3 Jul 2025 13:38:34 +0800 Subject: [PATCH] *[task#146146,doing,0.5h,3h] modify code --- module/story/test/lib/batchcreateinlite.ui.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/story/test/lib/batchcreateinlite.ui.class.php b/module/story/test/lib/batchcreateinlite.ui.class.php index d312c8ee6e..cc666ad4f6 100644 --- a/module/story/test/lib/batchcreateinlite.ui.class.php +++ b/module/story/test/lib/batchcreateinlite.ui.class.php @@ -43,14 +43,14 @@ class batchCreateStory extends tester //创建失败时的校验 if ($this->response('method') == 'batchCreate') { - if ($story->name == '') + if (!isset($story->name) || $story->name == '') { $nameTip = $this->lang->story->errorEmptyStory; return ($form->dom->alertModal('text') == $nameTip) ? $this->success('目标名称必填提示信息正确') : $this->failed('目标名称必填提示信息不正确'); } - if ($story->reviewer == '') + if (!isset($story->reviewer) || $story->reviewer == '') { $reviewerTip = sprintf($this->lang->error->notempty, $this->lang->story->reviewer); return ($reviewerTip == $form->dom->reviewerTip->getText())