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

Fix locations not being filtered down after filtering tests

Alan Lam 2 лет назад
Родитель
Сommit
c177657faf
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      controllers/reports.php

+ 3 - 0
controllers/reports.php

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