Improve ticket API
This commit is contained in:
parent
93f98484d9
commit
ff4c3bfc99
@ -14,6 +14,23 @@ function get_ticket_for_id($hesk_settings, $id = NULL) {
|
||||
|
||||
$results = [];
|
||||
while ($row = hesk_dbFetchAssoc($response)) {
|
||||
$row['id'] = intval($row['id']);
|
||||
$row['category'] = intval($row['category']);
|
||||
$row['priority'] = intval($row['priority']);
|
||||
$row['status'] = intval($row['status']);
|
||||
$row['openedby'] = intval($row['openedby']);
|
||||
$row['lastreplier'] = intval($row['lastreplier']);
|
||||
$row['replierid'] = intval($row['replierid']);
|
||||
$row['archive'] = $row['archive'] == true;
|
||||
$row['locked'] = $row['locked'] == true;
|
||||
$row['html'] = $row['html'] == true;
|
||||
$row['screen_resolution_height'] = $row['screen_resolution_height'] != NULL
|
||||
? intval($row['screen_resolution_height'])
|
||||
: NULL;
|
||||
$row['screen_resolution_width'] = $row['screen_resolution_width'] != NULL
|
||||
? intval($row['screen_resolution_width'])
|
||||
: NULL;
|
||||
|
||||
$results[] = $row;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user