Explorar el Código

Fix tests showing as unpaid

Alan Lam hace 2 años
padre
commit
9608b9e881
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      controllers/project_ajax.php

+ 2 - 1
controllers/project_ajax.php

@@ -56,6 +56,7 @@ if($submit) {
 					$pass_icon = "";
 
 					$retest = false;
+					$paid = true;
 
 					$class = "secondary";
 					if($test) {
@@ -91,7 +92,7 @@ if($submit) {
 						"latitude" => (float) $location->latitude,
 						"longitude" => (float) $location->longitude,
 						"retest" => $retest,
-						"paymentRequired" => !empty($payment_required),
+						"paymentRequired" => !empty($payment_required) && !$paid,
 						"paid" => !empty($paid)
 					];
 				}