diff --git a/applications/content/src/org/ofbiz/content/email/EmailServices.java b/applications/content/src/org/ofbiz/content/email/EmailServices.java index 6cc16fa507..24373bd5bf 100644 --- a/applications/content/src/org/ofbiz/content/email/EmailServices.java +++ b/applications/content/src/org/ofbiz/content/email/EmailServices.java @@ -995,7 +995,10 @@ public class EmailServices { if (partyRole == null) { dispatcher.runSync("createPartyRole", UtilMisc.toMap("partyId", partyId, "roleTypeId", roleTypeId, "userLogin", userLogin)); } - Map input = UtilMisc.toMap("communicationEventId", communicationEventId, "partyId", partyId, "roleTypeId", roleTypeId, "userLogin", userLogin, "contactMechId", (String) result.get("contactMechId")); + Map input = UtilMisc.toMap("communicationEventId", communicationEventId, + "partyId", partyId, "roleTypeId", roleTypeId, "userLogin", userLogin, + "contactMechId", (String) result.get("contactMechId"), + "statusId", "COM_ROLE_CREATED"); dispatcher.runSync("createCommunicationEventRole", input); } } diff --git a/applications/party/data/PartyTypeData.xml b/applications/party/data/PartyTypeData.xml index f07b06420c..661947d68c 100644 --- a/applications/party/data/PartyTypeData.xml +++ b/applications/party/data/PartyTypeData.xml @@ -326,6 +326,14 @@ under the License. + + + + + + + + diff --git a/applications/party/entitydef/entitymodel.xml b/applications/party/entitydef/entitymodel.xml index 4e1a949500..6c4a9cdbe7 100644 --- a/applications/party/entitydef/entitymodel.xml +++ b/applications/party/entitydef/entitymodel.xml @@ -703,8 +703,9 @@ under the License. - + + @@ -807,6 +808,7 @@ under the License. For additional communication event participants this represents the contactMechId of the ContactMech used. + @@ -826,6 +828,9 @@ under the License. + + + + - @@ -160,16 +160,29 @@ under the License. - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/applications/party/servicedef/services.xml b/applications/party/servicedef/services.xml index c604462328..58a001db2b 100644 --- a/applications/party/servicedef/services.xml +++ b/applications/party/servicedef/services.xml @@ -696,6 +696,13 @@ under the License. + + Update a Communication Event Role + + + + Remove a Communication Event Role