Ver Fonte

Add "Archived" and "Closed" columns to location CSV export

Alan Lam há 3 anos atrás
pai
commit
8b4e9bab73
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      engine/exports/location_csv_export.php

+ 3 - 1
engine/exports/location_csv_export.php

@@ -18,7 +18,7 @@ class LocationCsvExport {
 		$handle = fopen("php://output", "wb");
 
 		fputcsv($handle, [
-			"ID", "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", "Archived", "Closed",
 		]);
 
 		foreach($this->locations as $location) {
@@ -38,6 +38,8 @@ class LocationCsvExport {
 				$location->email,
 				$location->latitude,
 				$location->longitude,
+				$location->archived,
+				$location->closed,
 			]);
 		}