瀏覽代碼

Fix locations not being filtered down after filtering tests

Alan Lam 2 年之前
父節點
當前提交
c177657faf
共有 1 個文件被更改,包括 3 次插入 和 0 次删除
  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([