When a non-integer type is passed as the phone number argument to the add_staff command, the command executes successfully, adding an invalid staff record:
We verify that the staff is indeed added successfully using view_staff:
However, this is not intended behaviour since phone numbers cannot be non-integer types in any country. That being said, this is a low-severity bug since most users would not make this mistake, and users can resolve the issue using the delete_staff command.
When a non-integer type is passed as the phone number argument to the
add_staff
command, the command executes successfully, adding an invalid staff record:We verify that the staff is indeed added successfully using
view_staff
:However, this is not intended behaviour since phone numbers cannot be non-integer types in any country. That being said, this is a low-severity bug since most users would not make this mistake, and users can resolve the issue using the
delete_staff
command.Labels:
type.FunctionalityBug
severity.Low
original: haoyangw/ped#13