jshoyos / soen390-team01

MIT License
0 stars 0 forks source link

Edit User with invalid information breaks the UI #71

Closed jshoyos closed 3 years ago

jshoyos commented 3 years ago

Describe the bug When trying to modify a user with some invalid information (i.e removing the name or leaving a field empty) the validation will work but the modal view won't pop up again and the user will disappear from the user's table until we refresh the page. this might be linked to the modal view bug already existing #59

To Reproduce Steps to reproduce the behavior:

  1. Go to UserManagement
  2. Click on Edit of any desired user
  3. Delete the name or any other field
  4. Click on Update
  5. The modal view will disappear and the user won't appear in the table leaving a big blank space

Expected behavior We expect the modal view to stay with a validation message saying that the deleted field is required or incorrect

Screenshots image

Desktop (please complete the following information):

Additional context I believe this bug happens in all operating systems and all browsers

t-andrews commented 3 years ago

The same faulty behavior is present in the Transfers view for the Add Procurement modal's validation.

It makes the calling button disappear

introduced in #37