From a4f04c203faa37d08cd6580e06c6cc5c2088f206 Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 14 Aug 2023 15:47:14 +0800 Subject: [PATCH] * testcase: fix error of calling undefined variable. --- module/testcase/js/common.js | 1 + module/testcase/view/edit.html.php | 1 + 2 files changed, 2 insertions(+) diff --git a/module/testcase/js/common.js b/module/testcase/js/common.js index 4d70d3234b..f666b58ed3 100644 --- a/module/testcase/js/common.js +++ b/module/testcase/js/common.js @@ -278,6 +278,7 @@ function setScenes() branch = $('#branch').val(); moduleID = $('#module').val(); if(typeof(branch) == 'undefined') branch = 0; + if(typeof(sceneID) == 'undefined') sceneID = 0; element = (config.currentMethod == 'createscene' || config.currentMethod == 'editscene') ? 'parent' : 'scene'; link = createLink('testcase', 'ajaxGetScenes', 'productID=' + productID + '&branch=' + branch + '&moduleID=' + moduleID + '&element=' + element + '&sceneID=' + sceneID); diff --git a/module/testcase/view/edit.html.php b/module/testcase/view/edit.html.php index 9c3976f1a2..e5d767401d 100644 --- a/module/testcase/view/edit.html.php +++ b/module/testcase/view/edit.html.php @@ -17,6 +17,7 @@ testcase->insertBefore);?> testcase->insertAfter);?> id);?> +scene);?> app->tab);?>