mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Fix Ticket Summary move js inline with ticket.php as js files cant read php vars
This commit is contained in:
@@ -110,7 +110,7 @@ if (isset($_GET['ai_ticket_summary'])) {
|
||||
curl_setopt($ch, CURLOPT_POST, true);
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
||||
'Content-Type: application/json',
|
||||
'Authorization: Bearer ' . $config_ai_api_key,
|
||||
'Authorization: Bearer ' . $config_ai_api_key
|
||||
]);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($post_data));
|
||||
|
||||
@@ -126,4 +126,4 @@ if (isset($_GET['ai_ticket_summary'])) {
|
||||
|
||||
// Print the summary
|
||||
echo nl2br(htmlentities($summary));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user