diff --git a/entity/BulkMailRecipient_entity/BulkMailRecipient_entity.aod b/entity/BulkMailRecipient_entity/BulkMailRecipient_entity.aod index 4fc62aadc66ad08ec60258742d3b59da5addfd66..e480636ca5221e73739626f4cf04285a7fe5cdd9 100644 --- a/entity/BulkMailRecipient_entity/BulkMailRecipient_entity.aod +++ b/entity/BulkMailRecipient_entity/BulkMailRecipient_entity.aod @@ -305,6 +305,8 @@ <dbRecordFieldMapping> <name>IS_TEST_RECIPIENT.value</name> <recordfield>BULKMAILRECIPIENT.IS_TEST_RECIPIENT</recordfield> + <isFilterable v="true" /> + <isLookupFilter v="true" /> </dbRecordFieldMapping> <dbRecordFieldMapping> <name>HASCOMMUNICATIONREJECTION.value</name> diff --git a/entity/DocumentTemplate_entity/DocumentTemplate_entity.aod b/entity/DocumentTemplate_entity/DocumentTemplate_entity.aod index 662bec14c90b3e559dde0a4ef4c76e5bfff64a5a..c18b97ff7403516591010d350e34850adc1d0a77 100644 --- a/entity/DocumentTemplate_entity/DocumentTemplate_entity.aod +++ b/entity/DocumentTemplate_entity/DocumentTemplate_entity.aod @@ -82,8 +82,7 @@ </entityField> <entityConsumer> <name>Documents</name> - <state>INVISIBLE</state> - <stateProcess>%aditoprj%/entity/DocumentTemplate_entity/entityfields/documents/stateProcess.js</stateProcess> + <state>EDITABLE</state> <dependency> <name>dependency</name> <entityName>Document_entity</entityName> diff --git a/entity/DocumentTemplate_entity/entityfields/documents/stateProcess.js b/entity/DocumentTemplate_entity/entityfields/documents/stateProcess.js deleted file mode 100644 index 62d46782b24a1c776f9a5879cb044eb0323918fe..0000000000000000000000000000000000000000 --- a/entity/DocumentTemplate_entity/entityfields/documents/stateProcess.js +++ /dev/null @@ -1,9 +0,0 @@ -import("system.vars"); -import("system.neon"); -import("system.result"); -import("KeywordRegistry_basic") - -if( (vars.get("$field.KIND") != $KeywordRegistry.documentTemplateType$mail()) && (vars.get("$field.KIND") != $KeywordRegistry.documentTemplateType$signature()) ) -{ - result.string(neon.COMPONENTSTATE_EDITABLE); -} \ No newline at end of file diff --git a/entity/MosaicoTemplate_entity/MosaicoTemplate_entity.aod b/entity/MosaicoTemplate_entity/MosaicoTemplate_entity.aod index b62eb16a186dbf4fee0ccbbe1aa2a065c3764972..266a7baa414e65df0e85b5f13760cacd3a81bb2a 100644 --- a/entity/MosaicoTemplate_entity/MosaicoTemplate_entity.aod +++ b/entity/MosaicoTemplate_entity/MosaicoTemplate_entity.aod @@ -58,6 +58,7 @@ <consumer>KeywordMosaicoBaseTemplate</consumer> <mandatory v="true" /> <stateProcess>%aditoprj%/entity/MosaicoTemplate_entity/entityfields/basetemplate/stateProcess.js</stateProcess> + <displayValueProcess>%aditoprj%/entity/MosaicoTemplate_entity/entityfields/basetemplate/displayValueProcess.js</displayValueProcess> </entityField> <entityConsumer> <name>KeywordMosaicoBaseTemplate</name> @@ -157,6 +158,7 @@ <consumer>KeywordMosaicoTemplateCategory</consumer> <groupable v="true" /> <mandatory v="true" /> + <displayValueProcess>%aditoprj%/entity/MosaicoTemplate_entity/entityfields/category/displayValueProcess.js</displayValueProcess> </entityField> <entityActionField> <name>openAdminView</name> diff --git a/entity/MosaicoTemplate_entity/entityfields/basetemplate/displayValueProcess.js b/entity/MosaicoTemplate_entity/entityfields/basetemplate/displayValueProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..d0d0e0945cee51e0aa7736da34a036428b3aed96 --- /dev/null +++ b/entity/MosaicoTemplate_entity/entityfields/basetemplate/displayValueProcess.js @@ -0,0 +1,6 @@ +import("system.vars"); +import("system.result"); +import("KeywordRegistry_basic"); +import("Keyword_lib"); + +result.string(KeywordUtils.getViewValue($KeywordRegistry.mosaicoBaseTemplate(), vars.get("$field.BASETEMPLATE"))); \ No newline at end of file diff --git a/entity/MosaicoTemplate_entity/entityfields/category/displayValueProcess.js b/entity/MosaicoTemplate_entity/entityfields/category/displayValueProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..8ef3df909bdb004dbbdbe3843dafd26e0ab985fb --- /dev/null +++ b/entity/MosaicoTemplate_entity/entityfields/category/displayValueProcess.js @@ -0,0 +1,6 @@ +import("system.vars"); +import("system.result"); +import("KeywordRegistry_basic"); +import("Keyword_lib"); + +result.string(KeywordUtils.getViewValue($KeywordRegistry.mosaicoTemplateCategory(), vars.get("$field.CATEGORY"))); \ No newline at end of file diff --git a/entity/MosaicoTemplate_entity/entityfields/copytemplate/onActionProcess.js b/entity/MosaicoTemplate_entity/entityfields/copytemplate/onActionProcess.js index 9e061b14e8a46cc29abe46e5b995675d68ddf9a2..7a09b1146c2906901c2e224d1679ef944da9c171 100644 --- a/entity/MosaicoTemplate_entity/entityfields/copytemplate/onActionProcess.js +++ b/entity/MosaicoTemplate_entity/entityfields/copytemplate/onActionProcess.js @@ -2,6 +2,6 @@ import("system.vars"); import("system.neon"); var params = { - "copyMosaicoTemplateIdParam" : vars.get("$field.MOSAICOTEMPLATEID") + "CopyMosaicoTemplateIdParam" : vars.get("$field.MOSAICOTEMPLATEID") }; neon.openContext("MosaicoTemplate", null, null, neon.OPERATINGSTATE_NEW, params); \ No newline at end of file diff --git a/process/Bulkmail_lib/process.js b/process/Bulkmail_lib/process.js index 362e2b1707d3cc0163474fb9684551b826e51492..dd8076135d9850c59ad393113e0b6f22cd4e02f4 100644 --- a/process/Bulkmail_lib/process.js +++ b/process/Bulkmail_lib/process.js @@ -91,7 +91,7 @@ BulkMailUtils.sendBulkMail = function (pBulkMailId, pIsTestRun, pUser) useTemplateAttachments = Utils.toBoolean(useTemplateAttachments); - var template = BulkMailUtils.getBulkMailTemplate(pBulkMailId, templateId, true, useTemplateAttachments, mosaicoTemplateId); + var template = BulkMailUtils.getBulkMailTemplate(pBulkMailId, templateId, true, false, useTemplateAttachments, mosaicoTemplateId); var recipientData; var testRecipientData; @@ -473,7 +473,8 @@ BulkMailUtils.addRecipients = function (pBulkMailId, pContactIds) return sqlBuilder.buildInsertStatement({ "BULKMAIL_ID": pBulkMailId, "CONTACT_ID": contactId, - "STATUS": $KeywordRegistry.bulkMailRecipientStatus$pending(), + "STATUS": $KeywordRegistry.bulkMailRecipientStatus$added(), + "IS_TEST_RECIPIENT" : 0, "EMAIL_ADDRESS": standardMail }, "BULKMAILRECIPIENT", "BULKMAILRECIPIENTID"); });