Procházet zdrojové kódy

Add ID to location export

Alan Lam před 8 roky
rodič
revize
e594cb1d2e
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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,