Updated all simple methods to use the new attributes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667748 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -23,7 +23,7 @@ under the License.
|
||||
|
||||
<simple-method method-name="exampleGenericPermission" short-description="Main permission logic">
|
||||
<set field="mainAction" from-field="parameters.mainAction"/>
|
||||
<if-empty field-name="mainAction">
|
||||
<if-empty field="mainAction">
|
||||
<add-error><fail-message message="In the permission-service element for the exampleGenericPermission service the main-action attribute was missing but is required"/></add-error>
|
||||
<check-errors/>
|
||||
</if-empty>
|
||||
|
||||
@@ -56,7 +56,7 @@ under the License.
|
||||
<set-pk-fields map-name="parameters" value-name="newEntity"/>
|
||||
<set-nonpk-fields map-name="parameters" value-name="newEntity"/>
|
||||
<!-- fromDate is part of the PK, but optional in the service def, so make sure something is there -->
|
||||
<if-empty field-name="newEntity.fromDate"><now-timestamp-to-env env-name="newEntity.fromDate"/></if-empty>
|
||||
<if-empty field="newEntity.fromDate"><now-timestamp-to-env env-name="newEntity.fromDate"/></if-empty>
|
||||
<create-value value-name="newEntity"/>
|
||||
</simple-method>
|
||||
<simple-method method-name="updateExampleFeatureAppl" short-description="update a ExampleFeatureAppl">
|
||||
|
||||
Reference in New Issue
Block a user