Ticket ID to retrieve is no longer hard-coded
This commit is contained in:
parent
dd19b27b43
commit
404aea6318
@ -12,7 +12,7 @@ if(isset($_GET['id']))
|
|||||||
{
|
{
|
||||||
|
|
||||||
$ticketRepository = TicketRepository::getInstance();
|
$ticketRepository = TicketRepository::getInstance();
|
||||||
$ticket = $ticketRepository->getTicketForId(13, $hesk_settings);
|
$ticket = $ticketRepository->getTicketForId($_GET['id'], $hesk_settings);
|
||||||
//--A quick and dirty RESTful test using PHP.
|
//--A quick and dirty RESTful test using PHP.
|
||||||
echo json_encode($ticket);
|
echo json_encode($ticket);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user