From f6436b7652a1c1b4e609d1db4bc2f7ab1fe665a7 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Wed, 21 Oct 2020 17:30:19 -0700 Subject: [PATCH] fix: 'Save Chart' modal's dashboard dropdown isn't sticky (#11338) It appears that the logic that makes the dashboard selection sticky in the 'Save Chart' modal (explore) was broken at some time. While working on a dashboard, it's nice if this modal can remember the dashboard selection. --- superset/views/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/superset/views/core.py b/superset/views/core.py index f43a6037279..a90d5e426e2 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -873,6 +873,7 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods "form_data": slc.form_data, "slice": slc.data, "dashboard_url": dash.url if dash else None, + "dashboard_id": dash.id if dash else None, } if dash and request.args.get("goto_dash") == "true":