diff --git a/entity/WorkflowTask_entity/afterSave.js b/entity/WorkflowTask_entity/afterSave.js index 8a96fed45ae2865b16bf71a501bc79f6f41cd988..1181e2a7626fbdf7aabe02bc999a59f62dd300ca 100644 --- a/entity/WorkflowTask_entity/afterSave.js +++ b/entity/WorkflowTask_entity/afterSave.js @@ -1,3 +1,4 @@ +import("system.neonFilter"); import("system.neon"); import("system.workflow"); import("system.vars"); @@ -26,7 +27,9 @@ if (entityData["FORMRESULT"]) }, startVal); if (newestTask.id !== null) + { neon.openContextWithRecipe("WorkflowTask", "WorkflowTaskPreview_view", neonFilter.createEntityRecordsRecipeBuilder().uidsIncludelist([newestTask.id]).toString(), neon.OPERATINGSTATE_VIEW); + } else { var params = { diff --git a/process/EwsSyncContact_lib/process.js b/process/EwsSyncContact_lib/process.js index 123a053a22e34fd26e43e3fff662f95f8c1fc72d..2bd6c50a852b82ff6631260e06a9508dd3fa9cbd 100644 --- a/process/EwsSyncContact_lib/process.js +++ b/process/EwsSyncContact_lib/process.js @@ -687,7 +687,7 @@ EwsClientSyncUtils.updateEntrysInSyncTable = function(pUserMapping, pUserLoginPr var search = JSON.parse(pPropvalClob)["search"]; // search part of the filter JSON var whereCond = db.toFilterCondition(JSON.stringify(search), type); //-------------------------------------------------------------------------- - if(whereCond)//global variables cannot be read here and must be passed per user + if(Utils.isNullOrEmptyString(whereCond)) //global variables cannot be read here and must be passed per user { whereCond = StringUtils.replaceAll(whereCond, "$$$global.user.contactId$$$", tempUserMapping[2]); } diff --git a/process/FilterViewAction_lib/process.js b/process/FilterViewAction_lib/process.js index 7bfa3759b79fd9e4b3fef2faf8c5cb9d5880c9ce..e5596b6cbfc0ef48d5d008c33b233cf78b84a4f6 100644 --- a/process/FilterViewAction_lib/process.js +++ b/process/FilterViewAction_lib/process.js @@ -72,12 +72,12 @@ FilterViewActionUtils.getUidsByEntityFilter = function (pContext, pFilter, pPara .entity(ContextUtils.getEntity(pContext)) .fields(["#UID"]); - if (pFilter.filter) + if (Utils.isNullOrEmpty(pFilter.filter)) { loadRowsConfig.filter(JSON.stringify(pFilter.filter)); } - if(pParameters) + if(Utils.isNullOrEmpty(pParameters)) { Object.keys(pParameters).forEach(function(key){ loadRowsConfig.addParameter(key, pParameters[key]) diff --git a/process/ImporterMappingFunctions_lib/process.js b/process/ImporterMappingFunctions_lib/process.js index 0d00cb8f1b0295960e394f737275351f62bd43a4..ac22fd455182bb40178aed05281f7381d3ea703d 100644 --- a/process/ImporterMappingFunctions_lib/process.js +++ b/process/ImporterMappingFunctions_lib/process.js @@ -526,15 +526,15 @@ function iComm (pObject) standard = "1"; } + //@deprecated It should be used ObjectRowid and ObjectType + objectRowId = objectRowId || contactId; + objectType = objectType || "Contact"; + if (!address || !medium || !objectRowId) { return true; } - //@deprecated It should be used ObjectRowid and ObjectType - objectRowId = objectRowId || contactId; - objectType = objectType || "Contact"; - const COMMUNICATION = this.getTableCase("communication"); const COMMUNICATIONID = this.getColumnCase("communicationid"); const OBJECT_ROWID = this.getColumnCase("object_rowid");