acabiera / teambytesize

0 stars 1 forks source link

Add Product error #2

Open vlhobbs opened 6 years ago

vlhobbs commented 6 years ago

In the Add Product page, I attempted to add a product Book with the commodities Leather, Wood Pulp and Ink. All three of these commodities already existed in the database. I received the confirmation that the product was successfully added as well as the confirmation that Ink, Leather and Wood Pulp had not been updated. I also received the following error messages when the page reloaded.

image

This was the state of the three database tables immediately after adding the product and receiving the error messages. The important takeaway here is that the item was NOT added to Composition.

Composition: image

Products: image

Commodities: image

vlhobbs commented 6 years ago

I'm just glad that didn't happen in the demo 👍 (Also don't mind me, seeing how this works on github! Let me know if you need me to look at this, otherwise I'll most likely work on security and such)