Skip to content

Commit

Permalink
TheHive-Project#1651 Fix the case attachment list
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Nov 16, 2020
1 parent 358f4b9 commit 71ec8d2
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions ui/app/scripts/controllers/case/CaseDetailsCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,23 @@
'_parent': {
'_type': 'case_task',
'_query': {
'_parent': {
'_type': 'case',
'_query': {
'_id': $scope.caseId
_and: [
{
'_parent': {
'_type': 'case',
'_query': {
'_id': $scope.caseId
}
}
},
{
_not: {
status: 'Cancel'
}
}
}
]


}
}
}
Expand Down Expand Up @@ -95,7 +106,7 @@
$scope.openAttachment = function(attachment) {
$state.go('app.case.tasks-item', {
caseId: $scope.caze.id,
itemId: attachment.case_task.id
itemId: attachment.case_task ? attachment.case_task.id : attachment._parent
});
};

Expand Down

0 comments on commit 71ec8d2

Please sign in to comment.