A phone number that has only 7 digits was able to be accepted added to the buyer's contact. This is a functionality bug because when using Cobb to get this buyer's contact in the future, the information could be incorrect without the user knowing. Although not many users will encounter this erroneous input, it will be a problem for certain errors, therefore it is a low severity functionality bug.
Steps to reproduce
Enter addbuyer -n abcd -ph 1234567 -e hihi@gmail.com -a s123456 into the command line.
The buyer is added into the application.
Suggestion
Check through the user's input and ensure that the phone number is a valid phone number (starts with 6,8,9 and has 8 digits)
Issue
A phone number that has only 7 digits was able to be accepted added to the buyer's contact. This is a functionality bug because when using Cobb to get this buyer's contact in the future, the information could be incorrect without the user knowing. Although not many users will encounter this erroneous input, it will be a problem for certain errors, therefore it is a low severity functionality bug.
Steps to reproduce
addbuyer -n abcd -ph 1234567 -e hihi@gmail.com -a s123456
into the command line.Suggestion
Check through the user's input and ensure that the phone number is a valid phone number (starts with 6,8,9 and has 8 digits)
[original: nus-cs2103-AY2223S1/pe-interim#2940] [original labels: type.FunctionalityBug severity.Low]