nus-cs2103-AY2324S2 / pe-dev-response

0 stars 0 forks source link

Unable to edit a name with only numeric values #2224

Open nus-se-script opened 6 months ago

nus-se-script commented 6 months ago

Functionality Bug (Severity MEDIUM) Steps to reproduce

  1. Add a person with name 1
  2. Use '/edit-person ; name : 1 ; field : { address : Pooch Street31}' Expected Have the address of the person to be updated Actual Error message showing person does not exist Screenshot 2024-04-19 at 4.51.27 PM.png

[original: nus-cs2103-AY2324S2/pe-interim#1831] [original labels: type.FunctionalityBug severity.Medium]

yleeyilin commented 6 months ago

Team's Response

This was a problem resulting from the wrong use of the edit command. the correct command should have been "/edit-staff ;..." instead of "/edit-person.." since the contact type is STAFF. This is a wrong command usage and an invalid bug since the app actually allows for edit of person based off the name "1" if the right command format is used.

Correct command: /edit-staff ; name : 1 ; field : { address : Pooch Street31 } The success message is shown below:

image.png

Duplicate status (if any):

--