Skip to content

Commit

Permalink
Fix issue #1278 - Unable to load referenced resources (image etc) in …
Browse files Browse the repository at this point in the history
…published markdown report
  • Loading branch information
robinshine committed Mar 21, 2023
1 parent fc0a81a commit 583d8e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public class MarkdownReportDownloadResource extends AbstractResource {
protected ResourceResponse newResourceResponse(Attributes attributes) {
PageParameters params = attributes.getParameters();

Long projectId = params.get(PARAM_PROJECT).toLong();
Project project = OneDev.getInstance(ProjectManager.class).load(projectId);
String projectPath = params.get(PARAM_PROJECT).toString();
Project project = OneDev.getInstance(ProjectManager.class).findByPath(projectPath);

Long buildNumber = params.get(PARAM_BUILD).toOptionalLong();

Expand Down

0 comments on commit 583d8e0

Please sign in to comment.