Fix bug in ticket count in admin panel list users (#967)
This commit is contained in:
parent
45a59e0b20
commit
e6441179c9
|
@ -56,7 +56,11 @@ class DeleteController extends Controller {
|
|||
throw new RequestException(ERRORS::NO_PERMISSION);
|
||||
}
|
||||
|
||||
$ticketAuthor = User::getUser($ticket->authorToArray()['id']);
|
||||
$ticketAuthor->tickets--;
|
||||
|
||||
$ticket->delete();
|
||||
$ticketAuthor->store();
|
||||
|
||||
Response::respondSuccess();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue