Skip to content

Commit b479258

Browse files
authored
Merge pull request #3156 from catchpoint/hide_cancel_on_custome_scheduler
hide cancel test if custom scheduler is set
2 parents 05b8326 + fb6cd98 commit b479258

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

www/running.inc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
<div id="runningHeader" class="box">
4040
<?php
4141
$status = GetTestStatus($id, true);
42-
if ($status['statusCode'] < 400 && (!array_key_exists('startTime', $status) || !$status['startTime'])) {
42+
$cp_scheduler = GetSetting('cp_scheduler');
43+
$has_scheduler = isset($cp_scheduler) && strlen($cp_scheduler) > 0;
44+
if (!$has_scheduler && $status['statusCode'] < 400 && (!array_key_exists('startTime', $status) || !$status['startTime'])) {
4345
?>
4446
<form class="cancel_form" action="/cancelTest.php" method="get">
4547
<input type="hidden" name="test" value="<?php echo $id;?>">

0 commit comments

Comments
 (0)