Skip to content

Commit

Permalink
#527 Fix opening long job report from observables list
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Apr 12, 2018
1 parent 417209d commit 047ce9a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/app/scripts/controllers/case/CaseObservablesCtrl.js
Expand Up @@ -641,7 +641,7 @@
var job = response.data;
var report = {
job: job,
template: job.analyzerId,
template: job.analyzerName || job.analyzerId,
content: job.report,
status: job.status,
startDate: job.startDate,
Expand Down
10 changes: 9 additions & 1 deletion ui/app/scripts/services/CortexSrv.js
Expand Up @@ -38,7 +38,15 @@
}
}
}, {
analyzerId: analyzerId
_or: [
{analyzerId: analyzerId},
{
_like: {
_field: 'analyzerDefinition',
_value: analyzerId
}
}
]
}
]
}
Expand Down
@@ -1,7 +1,7 @@
<div class="modal-header bg-primary">
<h3 class="modal-title">Report of #{{$vm.report.job.analyzerId}} analysis</h3>
</div>
<div class="modal-body">
<div class="modal-body observable-report">
<report artifact="$vm.observable"
content="$vm.report.content.full || $vm.report.content"
report-type="long"
Expand Down

0 comments on commit 047ce9a

Please sign in to comment.