Skip to content

Flight Numbers with 5 (or more) digits. #2034

@FatihKoz

Description

@FatihKoz

Describe the bug
phpVMS allows storing flight numbers greater than 9999, or in a different term with 5 digits while importing flights. This should not happen, because a flight number can not have 5 digits.

Version
v7.0.4

To Reproduce
Steps to reproduce the behavior:

  1. Just update some flights via csv with a flight number like 15978
  2. See it is nicely imported

Expected behavior
Either manually or via import, inserted flight numbers should not exceed 9999 (as an integer), it should be limited to 4 chars.

Additional context
Same protections should apply to a pirep's flight_number field too.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions