From 04261dbcac559e3e2b8128e7edc114b258d00611 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 16 Feb 2024 11:00:51 +1100 Subject: [PATCH] Provide a *copy* of the page context to pass to plugin (#6496) --- InvenTree/plugin/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/plugin/views.py b/InvenTree/plugin/views.py index a332046f3e..85ba380a8d 100644 --- a/InvenTree/plugin/views.py +++ b/InvenTree/plugin/views.py @@ -39,6 +39,6 @@ class InvenTreePluginViewMixin: ctx = super().get_context_data(**kwargs) if settings.PLUGINS_ENABLED: - ctx['plugin_panels'] = self.get_plugin_panels(ctx) + ctx['plugin_panels'] = self.get_plugin_panels(ctx.copy()) return ctx