Merged in ronald-quentaprocessmaker/processmaker/HOR-2077 (pull request #5018)

HOR-2077
This commit is contained in:
Julio Cesar Laura Avendaño
2016-10-18 21:09:44 +00:00
2 changed files with 4 additions and 2 deletions

View File

@@ -657,7 +657,8 @@ class Ajax
require_once ("classes/model/AppNotes.php");
$appNotes = new AppNotes();
$noteContent = addslashes($_POST['NOTE_REASON']);
$appNotes->postNewNote($_SESSION['APPLICATION'], $_SESSION['USER_LOGGED'], $noteContent, $_POST['NOTIFY_REASSIGN']);
$notifyReassign = $_POST['NOTIFY_REASSIGN'] === 'true' ? true: false;
$appNotes->postNewNote($_SESSION['APPLICATION'], $_SESSION['USER_LOGGED'], $noteContent, $notifyReassign);
}
} catch (Exception $e) {
$result->status = 1;

View File

@@ -276,7 +276,8 @@ if ($actionAjax == 'reassignCase') {
require_once ("classes/model/AppNotes.php");
$appNotes = new AppNotes();
$noteContent = addslashes($_POST['NOTE_REASON']);
$res = $appNotes->postNewNote($_SESSION['APPLICATION'], $_SESSION['USER_LOGGED'], $noteContent, $_POST['NOTIFY_REASSIGN']);
$notifyReassign = $_POST['NOTIFY_REASSIGN'] === 'true' ? true: false;
$res = $appNotes->postNewNote($_SESSION['APPLICATION'], $_SESSION['USER_LOGGED'], $noteContent, $notifyReassign);
}
} catch (Exception $e) {
$result->status = 1;