Răsfoiți Sursa

Fix locations not being filtered down after filtering tests

Alan Lam 2 ani în urmă
părinte
comite
c177657faf
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      controllers/reports.php

+ 3 - 0
controllers/reports.php

@@ -253,6 +253,9 @@ if($submit) {
 			return true;
 		});
 
+		// Filter down locations
+		$locations = Location::load(array_column($tests, "location_id"));
+
 		// Get test values
 		$test_ids = array_column($tests, "id");
 		$test_values = TestValue::query([