Просмотр исходного кода

Fix pending tests showing up as fails

Alan Lam 3 лет назад
Родитель
Сommit
0c77b59381
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      views/location_list.php

+ 6 - 1
views/location_list.php

@@ -86,11 +86,16 @@ $user = Core::$user;
 							<i class="fa fa-fw fa-minus-circle text-secondary"></i> Void on <?=$user->formatDate($test->getDateTimeStart())?>
 							<?php
 						}
-						else {
+						elseif($test->isFail()) {
 							?>
 							<i class="fa fa-fw fa-times-circle text-danger"></i> Failed on <?=$user->formatDate($test->getDateTimeStart())?>
 							<?php
 						}
+						else {
+							?>
+							None
+							<?php
+						}
 					}
 					else {
 						?>