소스 검색

Add ID to location export

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,