PMCORE-1448

This commit is contained in:
Paula Quispe
2022-03-24 17:14:47 -04:00
parent 44b2469528
commit 8b20cbbb49
3 changed files with 14 additions and 0 deletions

View File

@@ -26063,6 +26063,12 @@ msgstr "You must login again to view the changes. Do you want do it now?"
msgid "System Settings"
msgstr "System Settings"
# TRANSLATION
# LABEL/ID_SYSTEM_VARIABLES_ARE_PROTECTED
#: LABEL/ID_SYSTEM_VARIABLES_ARE_PROTECTED
msgid "System variables are protected from changes, this request is denied"
msgstr "System variables are protected from changes, this request is denied"
# TRANSLATION
# LABEL/ID_TABLE
#: LABEL/ID_TABLE

View File

@@ -61281,6 +61281,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE
( 'LABEL','ID_SYSTEM_INFO','en','System information','2014-01-15') ,
( 'LABEL','ID_SYSTEM_REDIRECT_CONFIRM','en','You must login again to view the changes. Do you want do it now?','2015-01-16') ,
( 'LABEL','ID_SYSTEM_SETTINGS','en','System Settings','2014-01-15') ,
( 'LABEL','ID_SYSTEM_VARIABLES_ARE_PROTECTED','en','System variables are protected from changes, this request is denied','2022-03-24') ,
( 'LABEL','ID_TABLE','en','Table','2014-01-15') ,
( 'LABEL','ID_TABLES_REMOVED_SUCCESSFULLY','en','tables removed Successfully','2014-01-15') ,
( 'LABEL','ID_TABLES_REMOVED_WITH_ERRORS','en','tables removed but with errors','2014-01-15') ,

View File

@@ -1972,6 +1972,13 @@ class Cases
Validator::isArray($app_data, '$app_data');
Validator::isString($usr_uid, '$usr_uid');
Validator::usrUid($usr_uid, '$usr_uid');
// Validate the system variables
$systemVars = G::getSystemConstants();
foreach ($systemVars as $key => $var) {
if (array_key_exists($key, $app_data)) {
throw new Exception(G::LoadTranslation("ID_CAN_NOT_CHANGE"));
}
}
$arrayResult = $this->getStatusInfo($app_uid);