PMCORe-549
This commit is contained in:
@@ -18,7 +18,6 @@ if (!isset($_SESSION['USER_LOGGED'])) {
|
|||||||
|
|
||||||
$filter = new InputFilter();
|
$filter = new InputFilter();
|
||||||
$_REQUEST = $filter->xssFilterHard($_REQUEST);
|
$_REQUEST = $filter->xssFilterHard($_REQUEST);
|
||||||
$_POST = $filter->xssFilterHard($_POST);
|
|
||||||
|
|
||||||
if (isset($_REQUEST['action']) && $_REQUEST['action'] == "verifySession") {
|
if (isset($_REQUEST['action']) && $_REQUEST['action'] == "verifySession") {
|
||||||
if (!isset($_SESSION['USER_LOGGED'])) {
|
if (!isset($_SESSION['USER_LOGGED'])) {
|
||||||
@@ -673,12 +672,11 @@ class Ajax
|
|||||||
$result->msg = G::LoadTranslation('ID_REASSIGNMENT_SUCCESS', SYS_LANG, $data);
|
$result->msg = G::LoadTranslation('ID_REASSIGNMENT_SUCCESS', SYS_LANG, $data);
|
||||||
|
|
||||||
// Save the note reassign reason
|
// Save the note reassign reason
|
||||||
if (isset($_POST['NOTE_REASON']) && $_POST['NOTE_REASON'] !== '') {
|
if (!empty($_POST['NOTE_REASON'])) {
|
||||||
require_once("classes/model/AppNotes.php");
|
|
||||||
$appNotes = new AppNotes();
|
|
||||||
$noteContent = addslashes($_POST['NOTE_REASON']);
|
$noteContent = addslashes($_POST['NOTE_REASON']);
|
||||||
$notifyReassign = $_POST['NOTIFY_REASSIGN'] === 'true' ? true: false;
|
$notifyReassign = $_POST['NOTIFY_REASSIGN'] === 'true' ? true: false;
|
||||||
$appNotes->postNewNote($_SESSION['APPLICATION'], $_SESSION['USER_LOGGED'], $noteContent, $notifyReassign);
|
$cases = new BmCases();
|
||||||
|
$response = $cases->addNote($_SESSION['APPLICATION'], $_SESSION['USER_LOGGED'], $noteContent, $notifyReassign);
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$result->status = 1;
|
$result->status = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user