Przeglądaj źródła

Add ID to location export

Alan Lam 8 lat temu
rodzic
commit
e594cb1d2e
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      controllers/locations.php

+ 2 - 1
controllers/locations.php

@@ -65,11 +65,12 @@ if(!empty($action)) {
 			$handle = fopen("php://output", "w");
 
 			fputcsv($handle, [
-				"Internal ID", "City", "Legal Entity", "Region", "Area Manager", "Area Manager Email", "Open", "Close", "Name", "Address", "Postcode", "Email", "Latitude", "Longitude"
+				"ID", "Internal ID", "City", "Legal Entity", "Region", "Area Manager", "Area Manager Email", "Open", "Close", "Name", "Address", "Postcode", "Email", "Latitude", "Longitude"
 			]);
 
 			foreach($locations as $location) {
 				fputcsv($handle, [
+					$location->id,
 					$location->internal_id,
 					$location->city,
 					$location->legal_entity_name,