*[task#146146,doing,0.5h,3h] modify code

This commit is contained in:
lixiaoyu
2025-07-03 13:57:04 +08:00
parent d1433a4b0c
commit 30029901ae
@@ -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())