Skip to content

Commit

Permalink
fix(mobile): updated
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Sep 21, 2018
1 parent 5e2b38c commit 1ace577
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions mobile/js/dist/td.app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2272,9 +2272,16 @@ angular.module('trudesk.controllers.ticketDetails', []).controller('TicketsDetai

Tickets.update($scope.ticket).then(function successCallback(response) {
$scope.ticket = response.data.ticket;

$scope.hasAssignee = 'hide';
if ($scope.ticket.assignee !== undefined) $scope.hasAssignee = 'show';
if ($scope.ticket.assignee !== undefined && $scope.ticket.assignee.image === undefined) $scope.ticket.assignee.image = 'defaultProfile.jpg';

if ($scope.isSupport)
$scope.ticket.commentsMerged = _.sortBy(_.union($scope.ticket.comments, $scope.ticket.notes), 'date');
else
$scope.ticket.commentsMerged = $scope.ticket.comments;

$scope.setAssigneeModal.hide();
}, function errorCallback(response) {
console.log(response.data);
Expand Down
Loading

0 comments on commit 1ace577

Please sign in to comment.