svn commit: r614081 - /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: r614081 - /ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml

jleroux@apache.org
Author: jleroux
Date: Mon Jan 21 17:10:36 2008
New Revision: 614081

URL: http://svn.apache.org/viewvc?rev=614081&view=rev
Log:
Fix a bug from a Chris Juettner suggestion on OFBiz dev ML : "The dataTemplateTypeId is undefined in the original code but is passed as a valid field in the paramenters map."

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=614081&r1=614080&r2=614081&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 Mon Jan 21 17:10:36 2008
@@ -20,7 +20,7 @@
 
 <simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
- <!-- Methods for DataResource -->
+  <!-- Methods for DataResource -->
     <simple-method method-name="createDataResource" short-description="Create a Data Resource">
         <make-value entity-name="DataResource" value-name="newEntity"/>
         <set-nonpk-fields map-name="parameters" value-name="newEntity"/>
@@ -37,7 +37,7 @@
         <set field="newEntity.lastModifiedDate" from-field="nowTimestamp"/>
         <set field="newEntity.createdDate" from-field="nowTimestamp"/>
 
-        <if-empty field-name="dataTemplateTypeId">
+        <if-empty field-name="parameters.dataTemplateTypeId">
             <set field="newEntity.dataTemplateTypeId" value="NONE"/>
         </if-empty>
 
@@ -78,7 +78,7 @@
         <remove-value value-name="lookedUpValue"/>
     </simple-method>
 
- <!-- Methods for DataCategory -->
+  <!-- Methods for DataCategory -->
     <simple-method method-name="createDataCategory" short-description="Create a Data Category">
         <make-value entity-name="DataCategory" value-name="newEntity"/>
         <set-nonpk-fields map-name="parameters" value-name="newEntity"/>
@@ -101,7 +101,7 @@
         <remove-value value-name="lookedUpValue"/>
     </simple-method>
     
- <!-- Methods for DataResourceMetaData -->
+  <!-- Methods for DataResourceMetaData -->
     <simple-method method-name="createDataResourceMetaData" short-description="Create Data Resource Meta Data">
         <check-permission permission="CONTENTMGR" action="_CREATE"><fail-message message="Security Error: to run createDataResourceMetaData you must have the CONTENTMGR_CREATE or CONTENTMGR_ADMIN permission"/></check-permission>
         <check-errors/>
@@ -131,7 +131,7 @@
         <remove-value value-name="lookedUpValue"/>
     </simple-method>    
     
- <!-- Methods for DataResourcePurpose -->
+  <!-- Methods for DataResourcePurpose -->
     <simple-method method-name="createDataResourcePurpose" short-description="Create Data Resource Purpose">
         <check-permission permission="CONTENTMGR" action="_CREATE"><fail-message message="Security Error: to run createDataResourcePurpose you must have the CONTENTMGR_CREATE or CONTENTMGR_ADMIN permission"/></check-permission>
         <check-errors/>
@@ -161,7 +161,7 @@
         <remove-value value-name="lookedUpValue"/>
     </simple-method>    
     
- <!-- Methods for DataResourceRole -->
+  <!-- Methods for DataResourceRole -->
     <simple-method method-name="createDataResourceRole" short-description="Create Data Resource Role">
         <make-value entity-name="DataResourceRole" value-name="newEntity"/>
         <set-nonpk-fields map-name="parameters" value-name="newEntity"/>