You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#289
Reason for bug:
* Order has OrderName and MenuItem data fields
* But when storing order as JsonAdaptedOrder, we only keep track of the
MenuItem
* In the previous implementation of edit order command, only the
OrderName field is updated and MenuItem is not (After parsing the edit
order command input, in `EditOrderCommand::createEditedItem()`, the
edited Order object is created with the updated OrderName only, which
calls the Order constructor that only initialize the order name
correctly and initialize MenuItem as `INVALID`)
Changes made:
* Make `EditOrderCommand::createEditedItem()`, create the edited Order
object with the updated MenuItem instead of OrderName
Steps to reproduce:
edit_o
command to edit any fieldINVALID
The text was updated successfully, but these errors were encountered: