Skip to content
Snippets Groups Projects
Commit d6f8994f authored by brinn's avatar brinn
Browse files

Fix providing type information for the magic ${key} parameter in typed canned queries.

SVN: 28321
parent fc9b3283
No related branches found
No related tags found
No related merge requests found
......@@ -192,11 +192,12 @@ public class RunCannedQueryToolbar extends AbstractQueryProviderToolbar
};
for (String parameterName : query.getParameters())
{
final String strippedParameterName = stripMetadata(parameterName);
final QueryParameterValue initialValueOrNull =
tryGetInitialValue(stripMetadata(parameterName));
tryGetInitialValue(strippedParameterName);
if (initialValueOrNull != null && initialValueOrNull.isFixed())
{
addInitialBinding(parameterName, initialValueOrNull.getValue());
addInitialBinding(strippedParameterName, initialValueOrNull.getValue());
} else
{
addParameterField(ParameterField.create(viewContext, parameterName,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment