PMCORe-549

This commit is contained in:
Paula Quispe
2020-07-03 19:25:37 -04:00
parent 71f605768f
commit b18a29c35b

View File

@@ -18,7 +18,6 @@ if (!isset($_SESSION['USER_LOGGED'])) {
$filter = new InputFilter();
$_REQUEST = $filter->xssFilterHard($_REQUEST);
$_POST = $filter->xssFilterHard($_POST);
if (isset($_REQUEST['action']) && $_REQUEST['action'] == "verifySession") {
if (!isset($_SESSION['USER_LOGGED'])) {
@@ -673,12 +672,11 @@ class Ajax
$result->msg = G::LoadTranslation('ID_REASSIGNMENT_SUCCESS', SYS_LANG, $data);
// Save the note reassign reason
if (isset($_POST['NOTE_REASON']) && $_POST['NOTE_REASON'] !== '') {
require_once("classes/model/AppNotes.php");
$appNotes = new AppNotes();
if (!empty($_POST['NOTE_REASON'])) {
$noteContent = addslashes($_POST['NOTE_REASON']);
$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) {
$result->status = 1;