From b42623e2a106a9e3ec1dbc94715b433ee0b3ad51 Mon Sep 17 00:00:00 2001 From: Allen Short Date: Wed, 26 Jun 2019 14:48:03 -0500 Subject: [PATCH] Fix query id in parameter querystring names (fixes #942) (#969) This was broken by upstream changes. --- client/app/services/query.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/app/services/query.js b/client/app/services/query.js index 2a7ddd2adb..72a4a24c16 100644 --- a/client/app/services/query.js +++ b/client/app/services/query.js @@ -57,7 +57,6 @@ export class Parameter { this.useCurrentDateTime = parameter.useCurrentDateTime; this.global = parameter.global; // backward compatibility in Widget service this.enumOptions = parameter.enumOptions; - this.queryId = parameter.queryId; this.parentQueryId = parentQueryId; // Used for meta-parameters (i.e. dashboard-level params) @@ -175,7 +174,7 @@ export class Parameter { }; } return { - [`${prefix}${this.name}_${this.queryId}`]: this.value, + [`${prefix}${this.name}_${this.parentQueryId}`]: this.value, }; } @@ -188,7 +187,7 @@ export class Parameter { this.setValue([query[keyStart], query[keyEnd]]); } } else { - const key = `${prefix}${this.name}_${this.queryId}`; + const key = `${prefix}${this.name}_${this.parentQueryId}`; if (has(query, key)) { this.setValue(query[key]); }