Skip to content

Commit

Permalink
Fixed query playground script parsing after it was disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonydamage committed Aug 15, 2023
1 parent 6a561da commit ad310fb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,11 @@ private void queryPerformed(QueryPlaygroundPanel.Action action, AjaxRequestTarge
case EXECUTE_MIDPOINT:
queryPresent = StringUtils.isNotBlank(dto.getMidPointQuery()) || !dto.getMidPointQueryScript().getExpressionEvaluator().isEmpty();
if (queryPresent) {
updateRequestWithMidpointQuery(request, dto.getObjectType(), dto.getMidPointQuery(), dto.isDistinct(), dto.getMidPointQueryScript(), task, result);
ExpressionType scriptQuery = null;
if (dto.isScriptEnabled()) {
scriptQuery = dto.getMidPointQueryScript();
}
updateRequestWithMidpointQuery(request, dto.getObjectType(), dto.getMidPointQuery(), dto.isDistinct(), scriptQuery, task, result);
}
break;
default:
Expand Down

0 comments on commit ad310fb

Please sign in to comment.