Skip to content

Commit

Permalink
Fixed errors in report detail template and controller. As well as in …
Browse files Browse the repository at this point in the history
…license detail controller.
  • Loading branch information
PsychoSnake committed Jul 14, 2018
1 parent bff52c2 commit d3b7896
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class ReportController(val userService: UserService,

model["project_id"] = projectId
model["project_name"] = report.pk.project.name
model["error_name"] = report.error_info
model["error_info"] = report.error_info

model["report_id"] = reportId
model["readable_time"] = report.readableTimeStamp
Expand Down Expand Up @@ -375,7 +375,6 @@ class ReportController(val userService: UserService,
model["license_id"] = license.spdxId
val dependencies = license.dependencies.filter { it.pk.dependency.direct }
model["dependencies"] = dependencies.filter({ dep -> user.projects!!.any { it.pk.project!!.id == dep.pk.dependency.pk.report.pk.project.id } }).distinctBy { it.pk.dependency.pk.id }
model["error_info"] = license.errorInfo

return "license/generic-license-detail"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<b>Tag:</b> {{build_tag}}
{{/build_tag}}
<br>
{{#build_tag}}
{{#error_info}}
<b>Error Info:</b> {{error_info}}
{{/build_tag}}
{{/error_info}}
</p>


Expand Down

0 comments on commit d3b7896

Please sign in to comment.