mrkwnzl / cyphersystem-foundryvtt

The Cypher System for Foundry VTT
Other
21 stars 14 forks source link

Error reported when opening an Item from a locked compendium #342

Closed farling42 closed 10 months ago

farling42 commented 11 months ago

The extra code in CypherItemSheet.getData which calls this.item.update() needs some extra protection - the extra work should not be done if data.editable is false (data being the value returned by super.getData() at the start of the function).

This was first noticed when the GM is opening an Item in a compendium which was locked.

mrkwnzl commented 11 months ago

Good catch! Fixed in the next update.