2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 11:35:41 +00:00

Provide a *copy* of the page context to pass to plugin (#6496)

This commit is contained in:
Oliver
2024-02-16 11:00:51 +11:00
committed by GitHub
parent 43457d4136
commit 04261dbcac

View File

@ -39,6 +39,6 @@ class InvenTreePluginViewMixin:
ctx = super().get_context_data(**kwargs) ctx = super().get_context_data(**kwargs)
if settings.PLUGINS_ENABLED: if settings.PLUGINS_ENABLED:
ctx['plugin_panels'] = self.get_plugin_panels(ctx) ctx['plugin_panels'] = self.get_plugin_panels(ctx.copy())
return ctx return ctx