Skip to content

Conflict with Walled Templates module

Hi! I am the developer for the Walled Templates module. A user filed an issue noting a conflict between my Walled Templates module and the Quick Insert module. I can replicate the error. If you have both modules enabled using Foundry v10.291 with dnd5e 2.1.5, and you search for a spell in the locked spells compendium (e.g., "fireball"), and then open the result, it will throw an error instead of opening the spell: "You may not modify the dnd5e.spells.Compendium which is currently locked."

Walled Templates adds some html to the dnd5e spell template config. I suspect that when Quick Insert attempts to render the spell document, Walled Templates attempts to supplement the spell document template with the added html, and this (for reasons entirely unclear to me) triggers this error. As this is all done in async methods and websockets, it is not immediately obvious to me how Quick Insert actually handles opening a spell document from the compendium, and thus I have no idea if I could fix this in Walled Templates or if it is something Quick Insert will need to handle.

Other modules also add to document templates when rendering, so I suspect this error will crop up when using other modules as well.

Any assistance on a fix or workaround would be much appreciated! Thanks!