You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2009/04/26 08:05:52 UTC

svn commit: r768663 - in /ofbiz/branches/release09.04/applications: order/script/org/ofbiz/order/request/ order/webapp/ordermgr/WEB-INF/ order/webapp/ordermgr/request/ party/webapp/partymgr/WEB-INF/ party/webapp/partymgr/communication/ workeffort/src/o...

Author: hansbak
Date: Sun Apr 26 06:05:51 2009
New Revision: 768663

URL: http://svn.apache.org/viewvc?rev=768663&view=rev
Log:
Applied fix from trunk for revision: 768661

Modified:
    ofbiz/branches/release09.04/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml
    ofbiz/branches/release09.04/applications/order/webapp/ordermgr/WEB-INF/controller.xml
    ofbiz/branches/release09.04/applications/order/webapp/ordermgr/request/RequestForms.xml
    ofbiz/branches/release09.04/applications/party/webapp/partymgr/WEB-INF/controller.xml
    ofbiz/branches/release09.04/applications/party/webapp/partymgr/communication/CommForms.xml
    ofbiz/branches/release09.04/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java

Modified: ofbiz/branches/release09.04/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml?rev=768663&r1=768662&r2=768663&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml (original)
+++ ofbiz/branches/release09.04/applications/order/script/org/ofbiz/order/request/CustRequestServices.xml Sun Apr 26 06:05:51 2009
@@ -430,6 +430,7 @@
         <call-service service-name="setCommunicationEventStatus" in-map-name="updStat"/>
 
         <field-to-result field="parameters.custRequestId" result-name="custRequestId"/>
+        <string-to-list string="Customer request ${parameters.custRequestId} created" list="successMessageList"/>
     </simple-method>
 
     <!-- Create/Delete  CustRequest Content -->

Modified: ofbiz/branches/release09.04/applications/order/webapp/ordermgr/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/order/webapp/ordermgr/WEB-INF/controller.xml?rev=768663&r1=768662&r2=768663&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/order/webapp/ordermgr/WEB-INF/controller.xml (original)
+++ ofbiz/branches/release09.04/applications/order/webapp/ordermgr/WEB-INF/controller.xml Sun Apr 26 06:05:51 2009
@@ -1143,7 +1143,7 @@
     <request-map uri="setCustRequestStatus">
         <security https="true" auth="true"/>
         <event type="service" invoke="setCustRequestStatus"/>
-        <response name="success" type="view-last"/>
+        <response name="success" type="view-home"/>
         <response name="error" type="view" value="EditRequest"/>
     </request-map>
     <request-map uri="requestroles"><security https="true" auth="true"/><response name="success" type="view" value="RequestRoles"/></request-map>

Modified: ofbiz/branches/release09.04/applications/order/webapp/ordermgr/request/RequestForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/order/webapp/ordermgr/request/RequestForms.xml?rev=768663&r1=768662&r2=768663&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/order/webapp/ordermgr/request/RequestForms.xml (original)
+++ ofbiz/branches/release09.04/applications/order/webapp/ordermgr/request/RequestForms.xml Sun Apr 26 06:05:51 2009
@@ -564,7 +564,7 @@
                 <entity-options description="${description}" entity-name="ContentType"/>
             </drop-down>
         </field>
-        <field name="statusId" use-when="content==null">
+        <field name="statusId" use-when="contentId==void">
             <drop-down allow-empty="false" no-current-selected-key="CTNT_AVAILABLE">
                 <entity-options description="${description}" entity-name="StatusItem" key-field-name="statusId">
                     <entity-constraint name="statusTypeId" value="CONTENT_STATUS"/>
@@ -572,7 +572,7 @@
                 </entity-options>
             </drop-down>
         </field>
-        <field name="statusId" use-when="content!=null">
+        <field name="statusId" use-when="contentId!=void">
             <drop-down allow-empty="false" current-description="${currentStatus.description}" no-current-selected-key="CTNT_AVAILABLE">
                 <entity-options entity-name="StatusValidChangeToDetail" key-field-name="statusIdTo" description="${transitionName} (${description})">
                     <entity-constraint name="statusId" value="${content.statusId}"/>
@@ -580,11 +580,11 @@
                 </entity-options>
             </drop-down>
         </field>
-        <field name="mimeTypeId" >
+        <!--field name="mimeTypeId" >
             <drop-down allow-empty="false">
                 <entity-options description="${description}" entity-name="MimeType" key-field-name="mimeTypeId"/>
             </drop-down>
-        </field>
+        </field-->
         <field name="dataResourceName" title="${uiLabelMap.CommonUpload}*"><file/></field>
         <field name="dataCategoryId" use-when="dataResource==null">
             <drop-down allow-empty="false">
@@ -602,7 +602,7 @@
         </field>
         <field name="createButton"><submit button-type="button"/></field>
     </form>
-    <form name="ListCustRequestContent" type="list" list-name="custRequstAndContents"
+    <form name="ListCustRequestContent" type="list" list-name="custRequestAndContents"
         odd-row-style="alternate-row" default-table-style="basic-table hover-bar" paginate-target="EditCustRequestContent">
         <field name="custRequestId"><hidden/></field>
         <field name="contentId">

Modified: ofbiz/branches/release09.04/applications/party/webapp/partymgr/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/party/webapp/partymgr/WEB-INF/controller.xml?rev=768663&r1=768662&r2=768663&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/party/webapp/partymgr/WEB-INF/controller.xml (original)
+++ ofbiz/branches/release09.04/applications/party/webapp/partymgr/WEB-INF/controller.xml Sun Apr 26 06:05:51 2009
@@ -799,7 +799,7 @@
     <request-map uri="createRequestFromCommEvent">
         <security https="true" auth="true"/>
         <event type="service" invoke="createCustRequestFromCommEvent"/>
-        <response name="success" type="view-last"/>
+        <response name="success" type="view-home"/>
         <response name="error" type="view-last"/>
     </request-map>
 
@@ -855,8 +855,8 @@
     <request-map uri="RemoveCommunicationEventRole">
         <security https="true" auth="true"/>
         <event type="service" invoke="removeCommunicationEventRole"/>
-        <response name="success" type="view-last"/>
-        <response name="error" type="view-last"/>
+        <response name="success" type="view-home"/>
+        <response name="error" type="view-home"/>
     </request-map>
     <request-map uri="ListPartyCommEvents"><security https="true" auth="true"/><response name="success" type="view" value="ListPartyCommEvents"/></request-map>
 

Modified: ofbiz/branches/release09.04/applications/party/webapp/partymgr/communication/CommForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/party/webapp/partymgr/communication/CommForms.xml?rev=768663&r1=768662&r2=768663&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/party/webapp/partymgr/communication/CommForms.xml (original)
+++ ofbiz/branches/release09.04/applications/party/webapp/partymgr/communication/CommForms.xml Sun Apr 26 06:05:51 2009
@@ -190,7 +190,9 @@
         <field name="contentMimeTypeId"><hidden value="text/plain"/></field>
         <field name="content" title="${uiLabelMap.CommonContent}"><textarea cols="60" rows="10" default-value="${parameters.content}"/></field>
         <field name="send" title="&amp;nbsp;" position="1" use-when="communicationEvent!=null">
-            <hyperlink also-hidden="true" target-type="plain" description="${uiLabelMap.CommonSend}" target="javascript:(document.EditInternalNote.statusId.value='COM_COMPLETED'),(document.EditInternalNote.submit())"/>
+            <hyperlink also-hidden="true" 
+                target-type="plain" description="${uiLabelMap.CommonSend}" 
+                target="javascript:(document.EditInternalNote.statusId.value='COM_COMPLETE'),(document.EditInternalNote.submit())"/>
         </field>
         <field name="save" title="&amp;nbsp;" position="2" use-when="communicationEvent!=null">
             <hyperlink also-hidden="true" target-type="plain" description="${uiLabelMap.CommonSave}" target="javascript:(document.EditInternalNote.submit())"/>

Modified: ofbiz/branches/release09.04/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java?rev=768663&r1=768662&r2=768663&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java (original)
+++ ofbiz/branches/release09.04/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java Sun Apr 26 06:05:51 2009
@@ -113,8 +113,10 @@
 
         List<GenericValue> toBeStored = FastList.newInstance();
         for (Map.Entry<String, Long> entry: keywords.entrySet()) {
-            GenericValue workEffortKeyword = delegator.makeValue("WorkEffortKeyword", UtilMisc.toMap("workEffortId", workEffort.getString("workEffortId"), "keyword", entry.getKey(), "relevancyWeight", entry.getValue()));
-            toBeStored.add(workEffortKeyword);
+        	if (entry.getKey().length() < 60) { // ignore very long strings, cannot be stored anyway
+        		GenericValue workEffortKeyword = delegator.makeValue("WorkEffortKeyword", UtilMisc.toMap("workEffortId", workEffort.getString("workEffortId"), "keyword", entry.getKey(), "relevancyWeight", entry.getValue()));
+                toBeStored.add(workEffortKeyword);
+        	}
         }
         if (toBeStored.size() > 0) {
             if (Debug.verboseOn()) Debug.logVerbose("WorkEffortKeywordIndex indexKeywords Storing " + toBeStored.size() + " keywords for workEffortId " + workEffort.getString("workEffortId"), module);