Explorar o código

Fix missing `foreach` loop

Alan Lam hai 1 ano
pai
achega
02d1131ad0
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  1. 5 3
      views/reports.php

+ 5 - 3
views/reports.php

@@ -693,9 +693,11 @@ let projectData = <?=json_encode($project_table_data)?>;
 				foreach($location_filter_field_names as $location_filter_field_name) {
 					$values = http::value($location_filter_field_name, "trim") ?? [];
 					if($values) {
-						?>
-						<input type="hidden" name="<?=$location_filter_field_name?>[]" value="<?=htmlspecialchars($value)?>" />
-						<?php
+						foreach($values as $value) {
+							?>
+							<input type="hidden" name="<?=$location_filter_field_name?>[]" value="<?=htmlspecialchars($value)?>" />
+							<?php
+						}
 					}
 				}