Merged in bugfix/PMCORE-3332 (pull request #8139)
PMCORE-3332 Error message when consulting information about the cases (related to case notes) Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
@@ -436,7 +436,7 @@ export default {
|
||||
})
|
||||
.catch((err) => {
|
||||
if (err.response.data) {
|
||||
that.showAlert(err.response.data.error.message, "danger");
|
||||
that.showAlert(err.response.data.error.message, "info");
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@@ -26465,6 +26465,12 @@ msgstr "This Month"
|
||||
msgid "This quarter"
|
||||
msgstr "This quarter"
|
||||
|
||||
# TRANSLATION
|
||||
# LABEL/ID_THIS_USER_DOESNT_HAVE_PERMISSIONS_TO_SEE_CASE_NOTES
|
||||
#: LABEL/ID_THIS_USER_DOESNT_HAVE_PERMISSIONS_TO_SEE_CASE_NOTES
|
||||
msgid "This user doesn’t have permissions to see the case notes of this process."
|
||||
msgstr "This user doesn’t have permissions to see the case notes of this process."
|
||||
|
||||
# TRANSLATION
|
||||
# LABEL/ID_THIS_WEEK
|
||||
#: LABEL/ID_THIS_WEEK
|
||||
|
||||
@@ -61385,6 +61385,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
|
||||
( 'LABEL','ID_THE_WEBSITE_CAN_NOT_BE_REACHED','en','The website can not be reached','2020-03-02') ,
|
||||
( 'LABEL','ID_THIS_MONTH','en','This Month','2014-01-15') ,
|
||||
( 'LABEL','ID_THIS_QUARTER','en','This quarter','2014-01-15') ,
|
||||
( 'LABEL','ID_THIS_USER_DOESNT_HAVE_PERMISSIONS_TO_SEE_CASE_NOTES','en','This user doesn’t have permissions to see the case notes of this process.','2021-09-16') ,
|
||||
( 'LABEL','ID_THIS_WEEK','en','This Week','2014-01-15') ,
|
||||
( 'LABEL','ID_THIS_YEAR','en','This Year','2014-01-15') ,
|
||||
( 'LABEL','ID_THREAD_INDEX','en','Thread Index','2014-01-15') ,
|
||||
|
||||
@@ -2076,7 +2076,7 @@ class Cases
|
||||
$respView = $case->getAllObjectsFrom($proUid, $appUid, $tasUid, $usrUid, 'VIEW');
|
||||
$respBlock = $case->getAllObjectsFrom($proUid, $appUid, $tasUid, $usrUid, 'BLOCK');
|
||||
if ($respView['CASES_NOTES'] == 0 && $respBlock['CASES_NOTES'] == 0) {
|
||||
throw new Exception(G::LoadTranslation("ID_CASES_NOTES_NO_PERMISSIONS"));
|
||||
throw new Exception(G::LoadTranslation("ID_THIS_USER_DOESNT_HAVE_PERMISSIONS_TO_SEE_CASE_NOTES"));
|
||||
}
|
||||
// Get the notes
|
||||
$appNote = new Notes();
|
||||
|
||||
@@ -1184,7 +1184,7 @@ class Cases extends Api
|
||||
|
||||
return DateTime::convertUtcToIso8601($response, $this->arrayFieldIso8601);
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
|
||||
throw new RestException(401, $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user