HOR-4712
This commit is contained in:
@@ -2763,7 +2763,7 @@ function PMFDeleteCase ($caseUid)
|
|||||||
* @return int | $result | Result of the cancelation | Returns 1 if the case is cancel successfully; otherwise, returns 0 if an error occurred.
|
* @return int | $result | Result of the cancelation | Returns 1 if the case is cancel successfully; otherwise, returns 0 if an error occurred.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function PMFCancelCase ($caseUid, $delIndex, $userUid)
|
function PMFCancelCase ($caseUid, $delIndex = null, $userUid = null)
|
||||||
{
|
{
|
||||||
$ws = new WsBase();
|
$ws = new WsBase();
|
||||||
$result = $ws->cancelCase($caseUid, $delIndex, $userUid);
|
$result = $ws->cancelCase($caseUid, $delIndex, $userUid);
|
||||||
|
|||||||
@@ -98,7 +98,8 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST' && empty($_POST) && empty($_FILES) && $
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if ($_GET['APP_UID'] !== $_SESSION['APPLICATION']) {
|
if ($_GET['APP_UID'] !== $_SESSION['APPLICATION']) {
|
||||||
throw new Exception( G::LoadTranslation( 'ID_INVALID_APPLICATION_ID_MSG', array ('<a href=\'' . $_SERVER['HTTP_REFERER'] . '\'>{1}</a>',G::LoadTranslation( 'ID_REOPEN' ) ) ) );
|
$urlReferer = empty($_SERVER['HTTP_REFERER']) ? '../cases/casesListExtJsRedirector' : $_SERVER['HTTP_REFERER'];
|
||||||
|
throw new Exception(G::LoadTranslation('ID_INVALID_APPLICATION_ID_MSG', ['<a href=\'' . $urlReferer . '\'>{1}</a>', G::LoadTranslation('ID_REOPEN')]));
|
||||||
}
|
}
|
||||||
|
|
||||||
$arrayVariableDocumentToDelete = [];
|
$arrayVariableDocumentToDelete = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user