svn commit: r676747 - /ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r676747 - /ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml

hansbak-2
Author: hansbak
Date: Mon Jul 14 14:38:35 2008
New Revision: 676747

URL: http://svn.apache.org/viewvc?rev=676747&view=rev
Log:
partyIdFrom not initialized to userlogin

Modified:
    ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml

Modified: ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml?rev=676747&r1=676746&r2=676747&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/communication/CommForms.xml Mon Jul 14 14:38:35 2008
@@ -21,10 +21,10 @@
 <forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
 
     <form name="EditCommEvent" type="single" target="updateCommunicationEvent" default-map-name="communicationEvent">
-        <alt-target target="createCommunicationEvent" use-when="communicationEvent==null||communicationEvent.get(&quot;communicationEventId&quot;)==null"/>
+        <alt-target target="createCommunicationEvent" use-when="communicationEvent==null"/>
         <field name="partyId" map-name="parameters"><hidden/></field>
         
-        <field name="communicationEventId" use-when="communicationEvent!=null&amp;&amp;communicationEvent.get(&quot;communicationEventId&quot;)!=null"><display/></field>
+        <field name="communicationEventId" use-when="communicationEvent==null"><display/></field>
         <field name="parentCommEventId" position="2">
             <lookup target-form-name="LookupCommEvent">
                 <sub-hyperlink link-style="buttontext" target="EditCommunicationEvent?communicationEventId=${parentCommEventId}" description="${uiLabelMap.PartyGoToParent}" use-when="communicationEvent!=null&amp;&amp;communicationEvent.get(&quot;parentCommEventId&quot;)!=null"/>
@@ -123,7 +123,7 @@
         <field name="communicationEventTypeId"><hidden value="AUTO_EMAIL_COMM"/></field>
         <field name="statusId"><hidden value="COM_IN_PROGRESS"/></field>
         <field name="parentCommEventId"><hidden value="${parentCommEventId}"/></field>
-        <field name="partyIdFrom"><hidden value="${partyIdFrom}"/></field>
+        <field name="partyIdFrom"><hidden value="${userLogin.partyId}"/></field>
         <field name="emailAddress" parameter-name="contactMechIdFrom">
             <drop-down>
                 <entity-options entity-name="PartyAndContactMech" description="${infoString}" key-field-name="contactMechId">
@@ -174,7 +174,7 @@
         <field name="communicationEventTypeId"><hidden value="COMMENT_NOTE"/></field>
         <field name="parentCommEventId"><hidden value="${parentCommEventId}"/></field>
         <field name="statusId"><hidden value="COM_COMPLETE"/></field>
-        <field name="partyIdFrom"><hidden value="${partyIdFrom}"/></field>
+        <field name="partyIdFrom"><hidden value="${userLogin.partyId}"/></field>
         <field name="partyIdTo" title="${uiLabelMap.PartyPartyTo}">
             <drop-down>
                 <list-options list-name="recentParties" key-name="partyId" description="${firstName} ${middleName} ${lastName} ${groupName}"/>