Fix: No response toast anymore. Changed bootstrap-notify with Toastify.js due to CSP restrictions.
This commit is contained in:
@@ -8,7 +8,6 @@ require_once "{$_SERVER['DOCUMENT_ROOT']}/api/classes/API.php";
|
||||
$API = new API();
|
||||
|
||||
if ($API->request_method === 'GET') {
|
||||
ini_set('display_errors', 1);
|
||||
if (isset($_SESSION['response'])) {
|
||||
echo $_SESSION['response'];
|
||||
unset($_SESSION['response']);
|
||||
|
||||
@@ -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.']);
|
||||
}
|
||||
@@ -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.']);
|
||||
}
|
||||
Reference in New Issue
Block a user