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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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