* testcase: fix error of calling undefined variable.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);?>
|
||||
|
||||
Reference in New Issue
Block a user