svn commit: r1094007 - /ofbiz/trunk/applications/party/servicedef/services.xml

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

svn commit: r1094007 - /ofbiz/trunk/applications/party/servicedef/services.xml

sascharodekamp
Author: sascharodekamp
Date: Sat Apr 16 15:15:27 2011
New Revision: 1094007

URL: http://svn.apache.org/viewvc?rev=1094007&view=rev
Log:
Bug - Fixed a bug reported by Ravindra Mandre. When creating a party the first and last name were decalred as mandatory field but this was not checked in the service definition.
I extended the service definition, now first name and last name are not optional anymore.

Orig Msg:


> Hi list,
>
> In partymgr when I am creating a person then on the form first name and
> last
> name are required fields but If I submit the form without passing the first
> name and last name , form gets submitted , it means required validations
> are
> not working. so I am curious to know Is there any problem with Validations
> ?
> I tried for the following url
>
>
> https://demo-trunk.ofbiz.apache.org/partymgr/control/editperson?create_new=Y

Modified:
    ofbiz/trunk/applications/party/servicedef/services.xml

Modified: ofbiz/trunk/applications/party/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/services.xml?rev=1094007&r1=1094006&r2=1094007&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/services.xml Sat Apr 16 15:15:27 2011
@@ -79,6 +79,8 @@ under the License.
         <attribute name="description" type="String" mode="IN" optional="true"/>
         <attribute name="externalId" type="String" mode="IN" optional="true"/>
         <attribute name="statusId" type="String" mode="IN" optional="true"/>
+        <override name="firstName" mode="IN" type="String" optional="false"/>
+        <override name="lastName" mode="IN" type="String" optional="false"/>
     </service>
     <service name="createPersonAndUserLogin" engine="simple" require-new-transaction="true"
             location="component://party/script/org/ofbiz/party/party/PartySimpleMethods.xml" invoke="createPersonAndUserLogin" auth="false">