Fixed a couple issues with deleting tickets
parent
2ff27e197b
commit
b03312f73c
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Controllers\Tickets;
|
||||
|
||||
|
||||
use BusinessLogic\Tickets\TicketDeleter;
|
||||
|
||||
class StaffTicketController {
|
||||
function delete($id) {
|
||||
global $applicationContext, $userContext, $hesk_settings;
|
||||
|
||||
/* @var $ticketDeleter TicketDeleter */
|
||||
$ticketDeleter = $applicationContext->get[TicketDeleter::class];
|
||||
|
||||
$ticketDeleter->deleteTicket($id, $userContext, $hesk_settings);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue