From 3461672f10ba8f8e8887ca192605407e6c6ef7ab Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" Date: Mon, 29 Aug 2022 22:39:58 +0300 Subject: [PATCH] Fixes (#1481) Fare Service : Return the note, do not force it to an empty string Airport Importer : Make IATA nullable (as in the model) --- app/Services/FareService.php | 2 +- app/Services/ImportExport/AirportImporter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/FareService.php b/app/Services/FareService.php index 2d691123..6782a842 100644 --- a/app/Services/FareService.php +++ b/app/Services/FareService.php @@ -169,7 +169,7 @@ class FareService extends Service } } - $fare->notes = ''; + // $fare->notes = ''; $fare->active = true; return $fare; diff --git a/app/Services/ImportExport/AirportImporter.php b/app/Services/ImportExport/AirportImporter.php index 3dc69aa1..a4e0afdf 100644 --- a/app/Services/ImportExport/AirportImporter.php +++ b/app/Services/ImportExport/AirportImporter.php @@ -18,7 +18,7 @@ class AirportImporter extends ImportExport */ public static $columns = [ 'icao' => 'required', - 'iata' => 'required', + 'iata' => 'nullable', 'name' => 'required', 'location' => 'nullable', 'country' => 'nullable',