svn commit: r825410 - in /ofbiz/trunk/applications: order/widget/ordermgr/CustRequestForms.xml party/webapp/partymgr/WEB-INF/controller.xml

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

svn commit: r825410 - in /ofbiz/trunk/applications: order/widget/ordermgr/CustRequestForms.xml party/webapp/partymgr/WEB-INF/controller.xml

hansbak-2
Author: hansbak
Date: Thu Oct 15 06:48:08 2009
New Revision: 825410

URL: http://svn.apache.org/viewvc?rev=825410&view=rev
Log:
creating a customer request from a communication event was not working in mycommunications in the party component

Modified:
    ofbiz/trunk/applications/order/widget/ordermgr/CustRequestForms.xml
    ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml

Modified: ofbiz/trunk/applications/order/widget/ordermgr/CustRequestForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/widget/ordermgr/CustRequestForms.xml?rev=825410&r1=825409&r2=825410&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/widget/ordermgr/CustRequestForms.xml (original)
+++ ofbiz/trunk/applications/order/widget/ordermgr/CustRequestForms.xml Thu Oct 15 06:48:08 2009
@@ -292,7 +292,7 @@
         <field name="custRequestDate" title="${uiLabelMap.OrderRequestDate}"><date-time type="timestamp"/></field>
         <field name="responseRequiredDate"><date-time type="timestamp"/></field>
         <field name="fromPartyId" title="${uiLabelMap.OrderRequestingParty}">
-            <lookup target-form-name="LookupPartyName"/>
+            <lookup target-form-name="LookupPartyName" default-value="${communicationEvent.partyIdFrom}"/>
         </field>
         <field name="fulfillContactMechId">
             <lookup target-form-name="LookupPreferredContactMech" target-parameter="fromPartyId"/>

Modified: ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml?rev=825410&r1=825409&r2=825410&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml Thu Oct 15 06:48:08 2009
@@ -582,6 +582,16 @@
         <response name="success" type="request-redirect" value="viewprofile"/>
         <response name="error" type="request-redirect" value="viewprofile"/>
     </request-map>
+    <request-map uri="newrequest">
+        <security https="true" auth="true"/>
+        <response name="success" type="view" value="EditRequest"/>
+    </request-map>
+    <request-map uri="createrequest">
+        <security https="true" auth="true"/>
+        <event type="service" invoke="createCustRequest"/>
+        <response name="success" type="view-home" value="RequestList"/>
+        <response name="error" type="view" value="EditRequest"/>
+    </request-map>
 
 
     <!-- ContactList request mappings -->
@@ -1306,6 +1316,7 @@
     <view-map name="EditCommContent" type="screen" page="component://party/widget/partymgr/CommunicationEventScreens.xml#EditCommContent"/>
     <view-map name="EditRequestFromCommEvent" type="screen" page="component://party/widget/partymgr/CommunicationEventScreens.xml#EditRequestFromCommEvent"/>
     <view-map name="ViewRequest" type="screen" page="component://order/widget/ordermgr/CustRequestScreens.xml#ViewRequest"/>
+    <view-map name="EditRequest" type="screen" page="component://order/widget/ordermgr/CustRequestScreens.xml#EditRequest"/>
 
     <view-map name="CreateNewParty" type="screen" page="component://party/widget/partymgr/PartyScreens.xml#CreateNewParty"/>
     <view-map name="NewCustomer" type="screen" page="component://party/widget/partymgr/PartyScreens.xml#NewCustomer"/>