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

Fix PPTX export not factoring in location filters

Alan Lam 1 год назад
Родитель
Сommit
661ac68237
1 измененных файлов с 19 добавлено и 0 удалено
  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="retests" value="<?=htmlspecialchars($retests)?>" />
 				<?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) {
 					?>
 					<input type="hidden" name="exclude_project_ids[]" value="<?=$exclude_project_id?>" />