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

iSC/Cold chain/GAPS: duplicated error message when adding identical item variants #5501

Open marthakeezy opened 1 week ago

marthakeezy commented 1 week ago

What went wrong? 😲

When you add an item variant with a name that is already in use, you run into this duplicated error message

Errors

Expected behaviour 🤔

The error should be singular

How to Reproduce 🔨

Steps to reproduce the behaviour:

  1. Go to Catalogue -> Items
  2. Select an item for testing and click on Variants
  3. Add a Variant -> Save
  4. Add another variant with exactly the same name (case-sensitive) -> run into an error
  5. See duplicated notice

Your environment 🌱

mark-prins commented 14 hours ago

possibly not a good first issue.. but have a look and see