mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-28 16:24:42 +02:00
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…
x
Reference in New Issue
Block a user