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:
Hans Bakker
2008-10-27 07:47:04 +00:00
parent d137a0fb76
commit f235c8ea5d
2 changed files with 15 additions and 2 deletions
@@ -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;
+1 -1
View File
@@ -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>