mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-29 00:34:35 +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);
|
throw new RequestException(ERRORS::NO_PERMISSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$ticketAuthor = User::getUser($ticket->authorToArray()['id']);
|
||||||
|
$ticketAuthor->tickets--;
|
||||||
|
|
||||||
$ticket->delete();
|
$ticket->delete();
|
||||||
|
$ticketAuthor->store();
|
||||||
|
|
||||||
Response::respondSuccess();
|
Response::respondSuccess();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user