Explorar el Código

Fix PPTX export not factoring in location filters

Alan Lam hace 1 año
padre
commit
661ac68237
Se han modificado 1 ficheros con 19 adiciones y 0 borrados
  1. 19 0
      views/reports.php

+ 19 - 0
views/reports.php

@@ -680,6 +680,25 @@ let projectData = <?=json_encode($project_table_data)?>;
 				<input type="hidden" name="date_resolution" value="<?=htmlspecialchars($date_resolution)?>" />
 				<input type="hidden" name="date_resolution" value="<?=htmlspecialchars($date_resolution)?>" />
 				<input type="hidden" name="retests" value="<?=htmlspecialchars($retests)?>" />
 				<input type="hidden" name="retests" value="<?=htmlspecialchars($retests)?>" />
 				<?php
 				<?php
+
+				$location_filter_field_names = [
+					"brands",
+					"operation_managers",
+					"regions",
+					"area_managers",
+					"senior_gaming_managers",
+					"gaming_managers"
+				];
+
+				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($exclude_project_ids as $exclude_project_id) {
 				foreach($exclude_project_ids as $exclude_project_id) {
 					?>
 					?>
 					<input type="hidden" name="exclude_project_ids[]" value="<?=$exclude_project_id?>" />
 					<input type="hidden" name="exclude_project_ids[]" value="<?=$exclude_project_id?>" />