* testcase: fix error of calling undefined variable.

This commit is contained in:
liugang
2023-08-14 15:47:14 +08:00
parent 20824f3b52
commit a4f04c203f
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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);