* 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);
+1
View File
@@ -17,6 +17,7 @@
<?php js::set('lblBefore', $lang->testcase->insertBefore);?>
<?php js::set('lblAfter', $lang->testcase->insertAfter);?>
<?php js::set('caseID', $case->id);?>
<?php js::set('sceneID', $case->scene);?>
<?php js::set('tab', $this->app->tab);?>
<?php js::set('isLibCase', $isLibCase);?>
<?php js::set('testtasks', $testtasks);?>