-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update FlightService > Duplicate Flight Check (#1773)
* Update FlightService.php A flight should NOT be marked as duplicate unless * Airline * Flight Number * Route Code * Route Leg Number * Origin * Destination * Scheduled Days are identical with another flight. We can import flights with same numbers but with different origins and destinations, but can not edit them in admin due to very limited "duplicate check". Imagine you have a flight TK1 AYT-DUS TK1 DUS-BER TK2 BER-AYT You can import this, but can not edit TK1 because v7 thinks it has a duplicate. Change extends the check properly to consider origin, destination and weekdays. * Update FlightTest.php Test should consider the same fields as the function
- Loading branch information
Showing
2 changed files
with
31 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters