reply did not copy parameters from original email
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@708101 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+14
-1
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
import org.ofbiz.base.util.*;
|
||||
import org.ofbiz.party.contact.ContactMechWorker;
|
||||
|
||||
parentCommEventId = parameters.parentCommEventId;
|
||||
|
||||
@@ -30,10 +31,22 @@ if (parentCommEventId) {
|
||||
parameters.origCommEventId = orgEventId;
|
||||
|
||||
parameters.contactMechIdTo = parentEvent.contactMechIdFrom;
|
||||
if (!parameters.contactMechIdTo) {
|
||||
String partyId = parentEvent.partyIdFrom;
|
||||
contactMechList = ContactMechWorker.getPartyContactMechValueMaps(delegator, partyId, false);
|
||||
for (int i=0;i<contactMechList.size();i++) {
|
||||
GenericValue contactMech = (GenericValue) contactMechList.get(i).get("contactMech");
|
||||
String contactMechTypeId = (String) contactMech.getString("contactMechTypeId");
|
||||
if ("EMAIL_ADDRESS" == contactMechTypeId) {
|
||||
parameters.contactMechIdTo = (String) contactMech.getString("contactMechId");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
parameters.contactMechIdFrom = parentEvent.contactMechIdTo;
|
||||
|
||||
parameters.partyIdFrom = userLogin.partyId;
|
||||
parameters.partyIdTo = parentEvent.partyIdFrom;
|
||||
parameters.partyIdTo = parentEvent.partyIdFrom;
|
||||
parameters.statusId = "COM_IN_PROGRESS";
|
||||
|
||||
parameters.subject = "RE: " + parentEvent.subject;
|
||||
|
||||
@@ -268,7 +268,7 @@ under the License.
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="contactMechIdTo" title="${uiLabelMap.PartyEmailTo}">
|
||||
<lookup target-form-name="LookupPartyEmail"/>
|
||||
<lookup target-form-name="LookupPartyEmail" default-value="${parameters.contactMechIdTo}"/>
|
||||
</field>
|
||||
<field name="datetimeStarted" title="${uiLabelMap.CommonSendDate}"><date-time/></field>
|
||||
<field name="subject"><text size="60" default-value="${parameters.subject}"/></field>
|
||||
|
||||
Reference in New Issue
Block a user