ironmonk88 / monks-enhanced-journal

GNU General Public License v3.0
51 stars 51 forks source link

[BUG][A5e] Editing an item in a Loot/Shop journal gives an error #705

Open Havoclivekiller opened 2 months ago

Havoclivekiller commented 2 months ago

Describe the bug Made this in Level Up: 5th Edition (a5e) system. I saw it happen when I wanted to edit an item during game when it was in the shop. Tested it in a fresh world with only the module. Uncaught (in promise) Error: Item id [O0QORf1iQkzpmIuM] does not exist in the Items collection. at Items.get (foundry.js:12123:36) at #preUpdateDocumentArray (foundry-esm.js:55803:32) at ClientDatabaseBackend._updateDocuments (foundry-esm.js:55763:58) at ClientDatabaseBackend.update (foundry-esm.js:12257:19) at async ObjectItemA5e.updateDocuments (foundry-esm.js:11394:23) at async mS.update (foundry-esm.js:11504:23)

To Reproduce

  1. Create a loot/shop journal
  2. Create an item
  3. Drag item into the loot/shop
  4. Edit the item directly in loot/shop
  5. Change any value, for example price to "2,000 gp"

Expected behavior The ability to change item variables while they are in the loot/shop journal.

Screenshots image

Please complete as much of the following information as possible: