From 40843960264e1f4b3d56ada22c05fcb1167c8ebf Mon Sep 17 00:00:00 2001 From: liumengyi Date: Tue, 30 Jan 2024 13:21:18 +0800 Subject: [PATCH] * Fix bug #45543. --- lib/zin/wg/stepseditor/v1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zin/wg/stepseditor/v1.php b/lib/zin/wg/stepseditor/v1.php index a42d2e73f9..2cbe23170f 100644 --- a/lib/zin/wg/stepseditor/v1.php +++ b/lib/zin/wg/stepseditor/v1.php @@ -62,7 +62,7 @@ class stepsEditor extends wg $expectText = $this->prop('expectText', data('lang.testcase.stepExpect')); $sameLevelText = $this->prop('sameLevelText', data('lang.testcase.stepSameLevel')); $subLevelText = $this->prop('subLevelText', data('lang.testcase.stepSubLevel')); - $id = $this->prop('id'); + $id = $this->prop('id') ? $this->prop('id') : $this->gid; $expectDisabledTip = $this->prop('expectDisabledTip', data('lang.testcase.expectDisabledTip')); $deleteStepTip = $this->prop('deleteStepTip', data('lang.testcase.deleteStepTip')); $dragNestedTip = $this->prop('dragNestedTip', data('lang.testcase.dragNestedTip'));