Fix: No response toast anymore. Changed bootstrap-notify with Toastify.js due to CSP restrictions.

This commit is contained in:
2026-07-08 23:10:36 +02:00
parent f94bafb25d
commit fa3515625b
11 changed files with 578 additions and 31 deletions

View File

@@ -47,5 +47,5 @@ if ($API_portalsettings->request_method === 'GET') {
# Update the permission
$API_portalsettings->updatePortalSettingsOfficeTravelReimburse();
$API_portalsettings->apiOutput(200, ['success' => 'portal settings updated successfully.']);
}

View File

@@ -23,7 +23,6 @@ if ($API_office_travel_reimburse->request_method === 'POST') {
ini_set('display_errors', 1);
$API_office_travel_reimburse->checkPermissions('office-travel-reimburse', 'RO');
$API_office_travel_reimburse->return_url = false;
$portal_settings = $GLOBALS['conn']->query("SELECT * FROM system_settings")->fetch_assoc();
$month = $_POST['calender_month'];
$firstDay = $month . '-01';
@@ -208,4 +207,6 @@ if ($API_office_travel_reimburse->request_method === 'POST') {
$mail->sendMail();
unlink($pdfFile);
$API_office_travel_reimburse->apiOutput(200, ['success' => 'Message send.']);
}