From adc0c23acf924e7f9cf056d16e49d97623ce302d Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Fri, 13 Oct 2017 17:48:08 -0400 Subject: [PATCH] HOR-3980 --- gulliver/system/class.rbac.php | 2 +- workflow/engine/bin/cron_single.php | 2 +- workflow/engine/classes/class.pmFunctions.php | 2 +- .../triggers/class.pmAlfrescoFunctions.php | 4 +- .../translations/english/processmaker.en.po | 94 +++++++++++-------- workflow/engine/data/mysql/insert.sql | 18 ++-- workflow/engine/menus/setup.php | 4 +- 7 files changed, 74 insertions(+), 52 deletions(-) diff --git a/gulliver/system/class.rbac.php b/gulliver/system/class.rbac.php index e6ccf3752..97151b2ec 100644 --- a/gulliver/system/class.rbac.php +++ b/gulliver/system/class.rbac.php @@ -338,7 +338,7 @@ class RBAC ), array("PER_UID" => "00000000000000000000000000000038", "PER_CODE" => "PM_UNCANCELCASE", "PER_NAME" => "Undo cancel case" ), array("PER_UID" => "00000000000000000000000000000039", "PER_CODE" => "PM_REST_API_APPLICATIONS", - "PER_NAME" => "Create rest API Aplications" + "PER_NAME" => "Register External Applications" ), array("PER_UID" => "00000000000000000000000000000040", "PER_CODE" => "PM_EDIT_USER_PROFILE_FIRST_NAME", "PER_NAME" => "Edit User profile First Name" ), array("PER_UID" => "00000000000000000000000000000041", "PER_CODE" => "PM_EDIT_USER_PROFILE_LAST_NAME", diff --git a/workflow/engine/bin/cron_single.php b/workflow/engine/bin/cron_single.php index ae686b118..e3571a3c7 100644 --- a/workflow/engine/bin/cron_single.php +++ b/workflow/engine/bin/cron_single.php @@ -819,7 +819,7 @@ function executeCaseSelfService() unset($appFields['APP_PIN']); $case->updateCase($appFields["APP_UID"], $appFields); - saveLog("unassignedCase", "action", "OK Executed tigger to the case $appcacheAppNumber"); + saveLog("unassignedCase", "action", "OK Executed trigger to the case $appcacheAppNumber"); } } diff --git a/workflow/engine/classes/class.pmFunctions.php b/workflow/engine/classes/class.pmFunctions.php index 14f5896b9..6f751d1bc 100644 --- a/workflow/engine/classes/class.pmFunctions.php +++ b/workflow/engine/classes/class.pmFunctions.php @@ -2098,7 +2098,7 @@ function PMFDerivateCase ($caseId, $delIndex, $bExecuteTriggersBeforeAssignment * @param string(32) | $processId | Process ID | The unique ID of the process. * @param string(32) | $userId | User ID | The unique ID of the user. * @param array | $variables | Array of variables | An associative array of the variables which will be sent to the case. - * @param string(32) | $taskId | The unique ID of the task taha is in the starting group. + * @param string(32) | $taskId | The unique ID of the task that is in the starting group. * @return int | $result | Result | Returns 1 if new case was created successfully; otherwise, returns 0 if an error occurred. * */ diff --git a/workflow/engine/classes/triggers/class.pmAlfrescoFunctions.php b/workflow/engine/classes/triggers/class.pmAlfrescoFunctions.php index bff416aeb..209f617c7 100644 --- a/workflow/engine/classes/triggers/class.pmAlfrescoFunctions.php +++ b/workflow/engine/classes/triggers/class.pmAlfrescoFunctions.php @@ -305,10 +305,10 @@ function getFolderChildren($alfrescoServerUrl, $folderId, $user, $pwd) /** * @method * - * Uplaod file/document in Alfresco Repository + * Upload file/document in Alfresco Repository * * @name uploadDoc - * @label Uplaod file/document in Alfresco Repository + * @label Upload file/document in Alfresco Repository * * @param string | $alfrescoServerUrl | Server name and port where Alfresco exists | http://localhost:8080/alfresco * @param string | $fileSource | File Source diff --git a/workflow/engine/content/translations/english/processmaker.en.po b/workflow/engine/content/translations/english/processmaker.en.po index bf7890e93..c4a5e3303 100644 --- a/workflow/engine/content/translations/english/processmaker.en.po +++ b/workflow/engine/content/translations/english/processmaker.en.po @@ -1750,8 +1750,62 @@ msgstr "Changes saved" # TRANSLATION # LABEL/ID_EMAILS #: LABEL/ID_EMAILS -msgid "EMAILS" -msgstr "EMAILS" +msgid "Emails" +msgstr "Emails" + +# TRANSLATION +# LABEL/ID_NO_PREVIOUS_USR_UID +#: LABEL/ID_NO_PREVIOUS_USR_UID +msgid "The previous task doesn't have any users." +msgstr "The previous task doesn't have any users." + +# TRANSLATION +# LABEL/ID_SET_NO_MANAGER +#: LABEL/ID_SET_NO_MANAGER +msgid "Unassign Manager" +msgstr "Unassign Manager" + +# TRANSLATION +# LABEL/ID_ERROR_EMAIL +#: LABEL/ID_ERROR_EMAIL +msgid "Error" +msgstr "Error" + +# TRANSLATION +# LABEL/ID_CASE_SCHEDULER_CLASSIC +#: LABEL/ID_CASE_SCHEDULER_CLASSIC +msgid "Case Scheduler (classic processes)" +msgstr "Case Scheduler (classic processes)" + +# TRANSLATION +# LABEL/ID_PROCESS_IS_REQUIRED +#: LABEL/ID_PROCESS_IS_REQUIRED +msgid "Process field is required" +msgstr "Process field is required" + +# TRANSLATION +# LABEL/ID_DELEGATE_DATE_FROM +#: LABEL/ID_DELEGATE_DATE_FROM +msgid "Date from" +msgstr "Date from" + +# TRANSLATION +# LABEL/ID_REASSIGN_CONFIRM +#: LABEL/ID_REASSIGN_CONFIRM +msgid "Do you want to reassign the case?" +msgstr "Do you want to reassign the case?" + +# TRANSLATION +# LABEL/ID_MESSAGE_SUBJECT_NOTE_NOTIFICATION +#: LABEL/ID_MESSAGE_SUBJECT_NOTE_NOTIFICATION +msgid "A note has been added to the case" +msgstr "A note has been added to the case" + +# TRANSLATION +# LABEL/ID_EVENTS_CLASSIC +#: LABEL/ID_EVENTS_CLASSIC +msgid "Events (classic processes)" +msgstr "Events (classic processes)" # TRANSLATION # LABEL/ID_REPORT2 @@ -5360,12 +5414,6 @@ msgstr "Can not save, because, there is an Output Document with the same name in msgid "User or password is empty." msgstr "User or password is empty." -# TRANSLATION -# LABEL/ID_DELEGATE_DATE_FROM -#: LABEL/ID_DELEGATE_DATE_FROM -msgid "Delegated date from" -msgstr "Delegated date from" - # TRANSLATION # JAVASCRIPT/ID_DUPLICATE_CATEGORY_NAME #: JAVASCRIPT/ID_DUPLICATE_CATEGORY_NAME @@ -6872,12 +6920,6 @@ msgstr "Last Name" msgid "Case #{APP_NUMBER} was reassigned to user {USER}." msgstr "Case #{APP_NUMBER} was reassigned to user {USER}." -# TRANSLATION -# LABEL/ID_REASSIGN_CONFIRM -#: LABEL/ID_REASSIGN_CONFIRM -msgid "Are you sure to reassign the current case?" -msgstr "Are you sure to reassign the current case?" - # TRANSLATION # LABEL/ID_CASE_PAUSED_SUCCESSFULLY #: LABEL/ID_CASE_PAUSED_SUCCESSFULLY @@ -10508,12 +10550,6 @@ msgstr "From each table select at least one Schema/Data to export." msgid "Do you want to delete the selected skin?" msgstr "Do you want to delete the selected skin?" -# TRANSLATION -# LABEL/ID_MESSAGE_SUBJECT_NOTE_NOTIFICATION -#: LABEL/ID_MESSAGE_SUBJECT_NOTE_NOTIFICATION -msgid "A note has been added to the case." -msgstr "A note has been added to the case." - # TRANSLATION # LABEL/ID_MSG_CANNOT_EXPORT_DEFAULT_SKIN #: LABEL/ID_MSG_CANNOT_EXPORT_DEFAULT_SKIN @@ -18685,12 +18721,6 @@ msgstr "Compare" msgid "You can click on one of the dashboards to view the data or click on the favorite icon to make it your main dashboard." msgstr "You can click on one of the dashboards to view the data or click on the favorite icon to make it your main dashboard." -# TRANSLATION -# LABEL/ID_SET_NO_MANAGER -#: LABEL/ID_SET_NO_MANAGER -msgid "No set Manager" -msgstr "No set Manager" - # TRANSLATION # LABEL/ID_NO_SET_MANAGER_SUCCES #: LABEL/ID_NO_SET_MANAGER_SUCCES @@ -18895,12 +18925,6 @@ msgstr "(Goal value)" msgid "Please enter your credentials below" msgstr "Please enter your credentials below" -# TRANSLATION -# LABEL/ID_ERROR_EMAIL -#: LABEL/ID_ERROR_EMAIL -msgid "Error email" -msgstr "Error email" - # TRANSLATION # LABEL/ID_AVAILABLE_DATABASE #: LABEL/ID_AVAILABLE_DATABASE @@ -27473,12 +27497,6 @@ msgstr "Error: The application {0} is not canceled." msgid "Error: Thread status does not exist for the application {0}." msgstr "Error: Thread status does not exist for the application {0}." -# TRANSLATION -# LABEL/ID_NO_PREVIOUS_USR_UID -#: LABEL/ID_NO_PREVIOUS_USR_UID -msgid "The previuos task doesn't have any users." -msgstr "The previuos task doesn't have any users." - # TRANSLATION # LABEL/ID_WARNING_GATEWAY_CONVERGENT_WITH_CONDITION #: LABEL/ID_WARNING_GATEWAY_CONVERGENT_WITH_CONDITION diff --git a/workflow/engine/data/mysql/insert.sql b/workflow/engine/data/mysql/insert.sql index 524d1777b..c36449fee 100644 --- a/workflow/engine/data/mysql/insert.sql +++ b/workflow/engine/data/mysql/insert.sql @@ -44,6 +44,7 @@ INSERT INTO CONTENT (CON_CATEGORY,CON_PARENT,CON_ID,CON_LANG,CON_VALUE) VALUES ('PER_NAME','','00000000000000000000000000000036','en','Delete process cases'), ('PER_NAME','','00000000000000000000000000000037','en','Edit personal info Calendar'), ('PER_NAME','','00000000000000000000000000000038','en','Undo cancel case'), +('PER_NAME','','00000000000000000000000000000039','en','Register External Applications'), ('PER_NAME','','00000000000000000000000000000040','en','Edit User profile First Name'), ('PER_NAME','','00000000000000000000000000000041','en','Edit User profile Last Name'), ('PER_NAME','','00000000000000000000000000000042','en','Edit User profile Username'), @@ -1730,7 +1731,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ( 'JAVASCRIPT','ID_DBS_NEW','en','Add new Database Source','2014-01-15') , ( 'JAVASCRIPT','ID_DBS_LIST','en','Databases Source List','2014-01-15') , ( 'LABEL','ID_CHANGES_SAVED','en','Changes saved','2014-01-15') , -( 'LABEL','ID_EMAILS','en','EMAILS','2014-01-15') , +( 'LABEL','ID_EMAILS','en','Emails','2017-10-18') , ( 'LABEL','ID_REPORT2','en','Number of cases per process','2014-01-15') , ( 'LABEL','ID_REPORT1','en','Case duration by process and task','2014-01-15') , ( 'LABEL','ID_IUD','en','#','2014-01-15') , @@ -2346,7 +2347,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ( 'JAVASCRIPT','ID_EXIST_INPUTDOCUMENT','en','Can not save, because there is an Input Document with the same name in this process.','2014-01-15') , ( 'JAVASCRIPT','ID_EXIST_OUTPUTDOCUMENT','en','Can not save, because, there is an Output Document with the same name in this process.','2014-01-15') , ( 'LABEL','ID_CASE_SCHEDULER_VALIDATE_ALERT','en','User or password is empty.','2014-10-21') , -( 'LABEL','ID_DELEGATE_DATE_FROM','en','Delegated date from','2014-01-15') , +( 'LABEL','ID_DELEGATE_DATE_FROM','en','Date from','2017-10-18') , ( 'JAVASCRIPT','ID_DUPLICATE_CATEGORY_NAME','en','Duplicate category name.','2014-01-15') ; INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ) VALUES @@ -2606,7 +2607,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ( 'LABEL','ID_FIRSTNAME','en','First Name','2014-01-15') , ( 'LABEL','ID_LASTNAME','en','Last Name','2014-01-15') , ( 'LABEL','ID_REASSIGNMENT_SUCCESS','en','Case #{APP_NUMBER} was reassigned to user {USER}.','2014-01-15') , -( 'LABEL','ID_REASSIGN_CONFIRM','en','Are you sure to reassign the current case?','2014-01-15') , +( 'LABEL','ID_REASSIGN_CONFIRM','en','Do you want to reassign the case?','2017-10-18') , ( 'LABEL','ID_CASE_PAUSED_SUCCESSFULLY','en','The Case {APP_NUMBER} was paused successfully and it will be unpaused on date {UNPAUSE_DATE}','2014-01-15') , ( 'LABEL','ID_VACATION','en','Vacation','2014-01-15') , ( 'JAVASCRIPT','ID_DB_CONNECTION_ASSIGN','en','You cannot delete this database connection. It is assigned to a step.','2014-01-15') , @@ -3226,7 +3227,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ( 'LABEL','ID_TABLES_TO_EXPORT','en','Tables To Export','2014-01-15') , ( 'LABEL','ID_PMTABLES_NOTICE_EXPORT','en','From each table select at least one Schema/Data to export.','2014-10-21') , ( 'LABEL','ID_CONFIRM_DELETE_SKIN','en','Do you want to delete the selected skin?','2017-04-21') , -( 'LABEL','ID_MESSAGE_SUBJECT_NOTE_NOTIFICATION','en','A note has been added to the case.','2014-10-21') , +( 'LABEL','ID_MESSAGE_SUBJECT_NOTE_NOTIFICATION','en','A note has been added to the case','2017-10-18') , ( 'LABEL','ID_MSG_CANNOT_EXPORT_DEFAULT_SKIN','en','Default skin can''t be exported. Instead create new one based on default','2014-01-15') , ( 'LABEL','ID_MSG_CANNOT_EXPORT_SKIN','en','Can''t export skin. Server Error','2014-01-15') , ( 'LABEL','ID_NEW_SKIN','en','New Skin','2014-01-15') , @@ -3867,6 +3868,9 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ( 'LABEL','ID_EVENT_DESCRIPTION','en','Event Description','2014-01-15') , ( 'LABEL','ID_EVENT_ACTION','en','Event Type','2014-01-15') , ( 'LABEL','ID_EVENTS','en','Events','2014-01-15') , +( 'LABEL','ID_EVENTS_CLASSIC','en','Events (classic processes)','2017-13-10') , +( 'LABEL','ID_CASE_SCHEDULER_CLASSIC','en','Case Scheduler (classic processes)','2017-13-10') , +( 'LABEL','ID_PROCESS_IS_REQUIRED','en','Process field is required','2017-13-10') , ( 'LABEL','ID_EVENT_LIST','en','Log of events','2014-01-15') , ( 'LABEL','ID_EMPTY_TYPE','en','Select a Type','2014-01-15') , ( 'LABEL','ID_GRID_PAGE_NO_EVENT_MESSAGE','en','No Events to display','2014-01-15') , @@ -4624,7 +4628,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ( 'LABEL','ID_DASH_COMPARE_MONTH','en','Compare this month with','2015-05-26') , ( 'LABEL','ID_DASH_COMPARE','en','Compare','2015-03-18') , ( 'LABEL','ID_DASH_CLICK_TO_VIEW','en','You can click on one of the dashboards to view the data or click on the favorite icon to make it your main dashboard.','2015-03-18') , -( 'LABEL','ID_SET_NO_MANAGER','en','No set Manager','2015-03-18') , +( 'LABEL','ID_SET_NO_MANAGER','en','Unassign Manager','2017-10-18') , ( 'LABEL','ID_NO_SET_MANAGER_SUCCES','en','Manager unassigned correctly','2015-03-18') , ( 'LABEL','ID_INDICATOR_PROCESS_REQUIRED','en','The field Process of indicator "{0}" is required.','2015-03-18') , ( 'LABEL','ID_INDICATOR_TITLE_REQUIRED','en','The field Title of indicator "{0}" is required.','2015-03-18') , @@ -4661,7 +4665,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ( 'LABEL','ID_UNTITLED_TASK','en','Untitled task','2015-04-01') , ( 'LABEL','ID_GOAL_HELP','en','(Goal value)','2015-04-06') , ( 'LABEL','ID_PLEASE_ENTER_CREDENTIALS','en','Please enter your credentials below','2015-04-09') , -( 'LABEL','ID_ERROR_EMAIL','en','Error email','2015-04-20') , +( 'LABEL','ID_ERROR_EMAIL','en','Error','2017-10-18') , ( 'LABEL','ID_AVAILABLE_DATABASE','en','Available.','2015-04-21') , ( 'LABEL','ID_NOT_AVAILABLE_DATABASE','en','Not available.','2015-04-21') , ( 'LABEL','ID_WRONG_USER_PASS','en','Wrong username or password.','2015-04-22') , @@ -6124,7 +6128,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ( 'LABEL','ID_YOU_DO_NOT_HAVE_PERMISSION','en','Error: You do not have permission.','2016-06-15') , ( 'LABEL','ID_THE_APPLICATION_IS_NOT_CANCELED','en','Error: The application {0} is not canceled.','2016-06-15') , ( 'LABEL','ID_THREAD_STATUS_DOES_NOT_EXIST_FOR_THE_APPLICATION','en','Error: Thread status does not exist for the application {0}.','2016-06-15') , -( 'LABEL','ID_NO_PREVIOUS_USR_UID','en','The previuos task doesn''t have any users.','2016-06-17') , +( 'LABEL','ID_NO_PREVIOUS_USR_UID','en','The previous task doesn''t have any users.','2017-10-18') , ( 'LABEL','ID_WARNING_GATEWAY_CONVERGENT_WITH_CONDITION','en','Your Gateway Convergent has a condition, save again your process.','2016-06-23') , ( 'LABEL','ID_RT_RENAME_NAME_TABLE','en','All references to the previous table name are going to be invalid. Do you really want to change the table name?','2016-06-29') , ( 'LABEL','ID_RT_CONTINUE_TABLE_RENAME','en','Continue renaming the table','2016-06-30') ; diff --git a/workflow/engine/menus/setup.php b/workflow/engine/menus/setup.php index 50caffa9a..f0173beef 100644 --- a/workflow/engine/menus/setup.php +++ b/workflow/engine/menus/setup.php @@ -202,10 +202,10 @@ if ($RBAC->userCanAccess('PM_SETUP_ADVANCE') === 1 && $RBAC->userCanAccess('PM_U } if ($RBAC->userCanAccess('PM_SETUP') === 1 && $RBAC->userCanAccess('PM_SETUP_LOGS') === 1) { - $G_TMP_MENU->AddIdRawOption('EVENT', '../events/eventList', G::LoadTranslation('ID_EVENTS'), '', '', 'logs'); + $G_TMP_MENU->AddIdRawOption('EVENT', '../events/eventList', G::LoadTranslation('ID_EVENTS_CLASSIC'), '', '', 'logs'); $G_TMP_MENU->AddIdRawOption( 'LOG_CASE_SCHEDULER', '../cases/cases_Scheduler_Log', - G::LoadTranslation('ID_CASE_SCHEDULER'), + G::LoadTranslation('ID_CASE_SCHEDULER_CLASSIC'), "icon-logs-list.png", '', 'logs' ); $G_TMP_MENU->AddIdRawOption("CRON", "../setup/cron", G::LoadTranslation("ID_CRON_ACTIONS"), null, null, 'logs');