svn commit: r737360 - /ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml

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

svn commit: r737360 - /ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml

hansbak-2
Author: hansbak
Date: Sat Jan 24 14:17:27 2009
New Revision: 737360

URL: http://svn.apache.org/viewvc?rev=737360&view=rev
Log:
creating a data resource with predefined id did not return id

Modified:
    ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml

Modified: ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml?rev=737360&r1=737359&r2=737360&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml (original)
+++ ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml Sat Jan 24 14:17:27 2009
@@ -27,8 +27,7 @@
         <set-pk-fields map="parameters" value-field="newEntity"/>
 
         <if-empty field="newEntity.dataResourceId">
-            <sequenced-id sequence-name="DataResource" field="dataResourceId"/>
-            <set field="newEntity.dataResourceId" from-field="dataResourceId"/>
+            <sequenced-id sequence-name="DataResource" field="newEntity.dataResourceId"/>
         </if-empty>
 
         <now-timestamp field="nowTimestamp"/>
@@ -52,7 +51,7 @@
         </if-empty>
 
         <create-value value-field="newEntity"/>
-        <field-to-result field="dataResourceId"/>
+        <field-to-result field="newEntity.dataResourceId" result-name="dataResourceId"/>
     </simple-method>
 
     <simple-method method-name="updateDataResource" short-description="Update a Data Resource">