comment out the flight dupe check on import
This commit is contained in:
@@ -76,7 +76,7 @@ class FlightImporter extends ImportExport
|
|||||||
$airline = $this->getAirline($row['airline']);
|
$airline = $this->getAirline($row['airline']);
|
||||||
|
|
||||||
// Check if the imported flight is a duplicate
|
// Check if the imported flight is a duplicate
|
||||||
$temp_flight = new Flight([
|
/*$temp_flight = new Flight([
|
||||||
'airline_id' => $airline->id,
|
'airline_id' => $airline->id,
|
||||||
'flight_number' => $row['flight_number'],
|
'flight_number' => $row['flight_number'],
|
||||||
'route_code' => $row['route_code'],
|
'route_code' => $row['route_code'],
|
||||||
@@ -86,7 +86,7 @@ class FlightImporter extends ImportExport
|
|||||||
if($this->flightSvc->isFlightDuplicate($temp_flight)) {
|
if($this->flightSvc->isFlightDuplicate($temp_flight)) {
|
||||||
$this->errorLog('Error in row '.$index.': Duplicate flight number detected');
|
$this->errorLog('Error in row '.$index.': Duplicate flight number detected');
|
||||||
return false;
|
return false;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
// Try to find this flight
|
// Try to find this flight
|
||||||
$flight = Flight::firstOrNew([
|
$flight = Flight::firstOrNew([
|
||||||
|
|||||||
Reference in New Issue
Block a user