Skip to content

Commit

Permalink
Issue 50179: Exceptions logged by Radeox are difficult to track back …
Browse files Browse the repository at this point in the history
…to the offending wiki (#449)
  • Loading branch information
labkey-jeckels authored Aug 27, 2024
1 parent 7af51ed commit 1d534aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9270,7 +9270,7 @@ public void validateCommand(PanoramaPublicMessageForm form, Errors errors)
{
List<String> validationErrors = new ArrayList<>();

HtmlString formattedMessage = WikiRenderingService.get().getFormattedHtml(WikiRendererType.MARKDOWN, form.getMessage());
HtmlString formattedMessage = WikiRenderingService.get().getFormattedHtml(WikiRendererType.MARKDOWN, form.getMessage(), null);
PageFlowUtil.validateHtml(formattedMessage.renderToString(), validationErrors, false);
if (!validationErrors.isEmpty())
{
Expand Down Expand Up @@ -9336,7 +9336,7 @@ private MessageExampleBean createExampleMessage(List<Integer> experimentIds, Pan
example.setExperimentAnnotations(expAnnotations);
example.setTitle(title);
example.setMessage(messageBody.toString());
example.setMarkdownMessage(WikiRenderingService.get().getFormattedHtml(WikiRendererType.MARKDOWN, messageBody.toString()));
example.setMarkdownMessage(WikiRenderingService.get().getFormattedHtml(WikiRendererType.MARKDOWN, messageBody.toString(), "Panorama experiment " + experimentId));
return example;
}
return null;
Expand Down

0 comments on commit 1d534aa

Please sign in to comment.