Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix query id in parameter querystring names (fixes #942) #969

Merged
merged 1 commit into from
Jun 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions client/app/services/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -175,7 +174,7 @@ export class Parameter {
};
}
return {
[`${prefix}${this.name}_${this.queryId}`]: this.value,
[`${prefix}${this.name}_${this.parentQueryId}`]: this.value,
};
}

Expand All @@ -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]);
}
Expand Down