svn commit: r780138 - /ofbiz/trunk/applications/content/servicedef/secas.xml

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

svn commit: r780138 - /ofbiz/trunk/applications/content/servicedef/secas.xml

jleroux@apache.org
Author: jleroux
Date: Fri May 29 23:21:20 2009
New Revision: 780138

URL: http://svn.apache.org/viewvc?rev=780138&view=rev
Log:
SHORT_TEXT was not working

Modified:
    ofbiz/trunk/applications/content/servicedef/secas.xml

Modified: ofbiz/trunk/applications/content/servicedef/secas.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/servicedef/secas.xml?rev=780138&r1=780137&r2=780138&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/servicedef/secas.xml (original)
+++ ofbiz/trunk/applications/content/servicedef/secas.xml Fri May 29 23:21:20 2009
@@ -29,7 +29,7 @@
         <condition field-name="surveyId" operator="is-not-empty"/>
         <action service="createSurveyQuestionAppl" mode="sync"/>
     </eca>
-    
+
     <!-- create data resource ecas -->
     <eca service="createDataResource" event="commit">
         <condition field-name="partyId" operator="is-not-empty"/>
@@ -76,6 +76,13 @@
         <action service="createElectronicText" mode="sync" result-to-context="true"/>
     </eca>
     <eca service="createDataText" event="invoke">
+        <condition field-name="dataResourceTypeId" operator="equals" value="SHORT_TEXT"/>
+        <condition field-name="textData" operator="is-not-empty"/>
+        <set field-name="dataResourceTypeId" value="SHORT_TEXT"/>
+        <action service="createDataResource" mode="sync" result-to-context="true"/>
+    </eca>
+    <!-- This one is a bit weird, why choosing SHORT_TEXT ?-->
+    <eca service="createDataText" event="invoke">
         <condition field-name="dataResourceTypeId" operator="is-empty"/>
         <condition field-name="textData" operator="is-empty"/>
         <set field-name="dataResourceTypeId" value="SHORT_TEXT"/>