msupply-foundation / open-msupply

Open mSupply represents our most recent advancement in the Logistics Management Information System (LMIS), expanding on more than two decades of development inherited from the well-established legacy of the original mSupply.
https://msupply.foundation/open-msupply/
Other
23 stars 14 forks source link

Save and Cancel button doesn't work properly in Patient Program #5238

Open AnushaUp opened 2 weeks ago

AnushaUp commented 2 weeks ago

What went wrong? 😲

Found while testing THIS After saving the information of patient's Family / Partner information the buttons doesn't work properly. Video HERE

Expected behaviour 🤔

Buttons should work properly

How to Reproduce 🔨

Steps to reproduce the behaviour:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Your environment 🌱

lache-melvin commented 1 week ago

Looks like the "navigate back one" is going back to the new contact page, which sees that the contact already exists, and redirects the user back to the contact details. So seems like the cancel/back buttons aren't working.

Should be a quick fix, do a "replace = true" in the redirect from create -> details, so back button goes back to the previous page (patient)