Author: deepak
Date: Sat Nov 5 17:25:25 2016 New Revision: 1768253 URL: http://svn.apache.org/viewvc?rev=1768253&view=rev Log: Fixed: Set required parameter as option false at service definition level. (OFBIZ-8358) Thanks Avnindra Sharma and Pawan Verma for your contribution. Modified: ofbiz/trunk/applications/marketing/servicedef/services.xml ofbiz/trunk/applications/workeffort/servicedef/services.xml Modified: ofbiz/trunk/applications/marketing/servicedef/services.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/servicedef/services.xml?rev=1768253&r1=1768252&r2=1768253&view=diff ============================================================================== --- ofbiz/trunk/applications/marketing/servicedef/services.xml (original) +++ ofbiz/trunk/applications/marketing/servicedef/services.xml Sat Nov 5 17:25:25 2016 @@ -137,7 +137,6 @@ under the License. <auto-attributes include="pk" mode="IN" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> <attribute name="productStoreId" type="String" mode="INOUT" optional="true"/> - <attribute name="contactListId" type="String" mode="INOUT" optional="true"/> <attribute name="optInVerifyCode" type="String" mode="IN" optional="true"/> <attribute name="baseLocation" type="String" mode="IN" optional="true"/> <override name="fromDate" optional="true"/> @@ -149,7 +148,6 @@ under the License. <auto-attributes include="nonpk" mode="IN" optional="true"/> <attribute name="webSiteId" type="String" mode="IN" optional="true"/> <attribute name="productStoreId" type="String" mode="INOUT" optional="true"/> - <attribute name="contactListId" type="String" mode="INOUT" optional="true"/> <attribute name="optInVerifyCode" type="String" mode="IN" optional="true"/> <attribute name="email" type="String" mode="IN" optional="true"/> <attribute name="baseLocation" type="String" mode="IN" optional="true"/> Modified: ofbiz/trunk/applications/workeffort/servicedef/services.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/servicedef/services.xml?rev=1768253&r1=1768252&r2=1768253&view=diff ============================================================================== --- ofbiz/trunk/applications/workeffort/servicedef/services.xml (original) +++ ofbiz/trunk/applications/workeffort/servicedef/services.xml Sat Nov 5 17:25:25 2016 @@ -361,8 +361,25 @@ under the License. <description>Creates a WorkEffort entity and WorkEffortAssoc</description> <auto-attributes include="pk" mode="INOUT" optional="true" entity-name="WorkEffort"/> <auto-attributes include="nonpk" mode="IN" optional="true" entity-name="WorkEffort"/> - <auto-attributes include="pk" mode="INOUT" optional="true" entity-name="WorkEffortAssoc"/> + <auto-attributes include="pk" mode="INOUT" optional="false" entity-name="WorkEffortAssoc"/> <auto-attributes include="nonpk" mode="IN" optional="true" entity-name="WorkEffortAssoc"/> + <override name="workEffortIdTo" optional="true"/> + <override name="fromDate" optional="true"/> + <override name="currentStatusId" optional="false"> + <type-validate> + <fail-property resource="WorkEffortUiLabels" property="WorkEffortRequiredFieldMissingCurrentStatusId"/> + </type-validate> + </override> + <override name="workEffortName" optional="false"> + <type-validate> + <fail-property resource="WorkEffortUiLabels" property="WorkEffortRequiredFieldMissingWorkEffortName"/> + </type-validate> + </override> + <override name="workEffortTypeId" optional="false"> + <type-validate> + <fail-property resource="WorkEffortUiLabels" property="WorkEffortRequiredFieldMissingWorkEffortTypeId"/> + </type-validate> + </override> <attribute name="quickAssignPartyId" type="String" mode="IN" optional="true"/> </service> <service name="updateWorkEffortAndAssoc" engine="group" location="updateWorkEffortAndAssoc" invoke="" auth="true"> @@ -662,7 +679,7 @@ under the License. location="component://workeffort/minilang/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortKeyword" auth="true"> <description>Create a Work Effort Keyword</description> <permission-service service-name="workEffortManagerPermission" main-action="CREATE"/> - <auto-attributes include="pk" mode="IN" optional="true"/> + <auto-attributes include="pk" mode="IN" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> </service> <service name="deleteWorkEffortKeyword" engine="simple" @@ -745,7 +762,11 @@ under the License. <auto-attributes entity-name="WorkEffortContactMech" mode="IN" include="nonpk" optional="true"/> <auto-attributes entity-name="PartyContactMech" include="all" mode="IN" optional="true"/> <attribute name="workEffortId" mode="IN" type="String" optional="false"></attribute> - <attribute name="contactMechTypeId" mode="IN" type="String" optional="true"></attribute> + <attribute name="contactMechTypeId" mode="IN" type="String" optional="false"> + <type-validate> + <fail-property resource="WorkEffortUiLabels" property="WorkEffortRequiredFieldMissingContactMechTypeId"/> + </type-validate> + </attribute> <attribute name="infoString" mode="IN" type="String" optional="true"></attribute> <attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="true"/> <attribute name="contactMechId" type="String" mode="INOUT" optional="true"/> |
Free forum by Nabble | Edit this page |