Skip to content

Commit 2640d5a

Browse files
committed
Contribution - Fix out of range error on TC exec without platform #354
1 parent bb77a61 commit 2640d5a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/execute/execSetResults.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@
4949
$submitResult = null;
5050
list($args,$its,$cts) = init_args($db,$cfg);
5151

52+
// ------------------------------------------------------------------------------
53+
// the default -1 create an out of range error on TC execution without platform
54+
if ($args->platform_id == -1){
55+
$args->platform_id = 0;
56+
}
57+
// ------------------------------------------------------------------------------
58+
5259
$smarty = new TLSmarty();
5360
$smarty->assign('tsuite_info',null);
5461

0 commit comments

Comments
 (0)