Alan Lam пре 8 година
родитељ
комит
e594cb1d2e
1 измењених фајлова са 2 додато и 1 уклоњено
  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,