svn commit: r542138 - /ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java

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

svn commit: r542138 - /ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java

lektran
Author: lektran
Date: Mon May 28 00:46:45 2007
New Revision: 542138

URL: http://svn.apache.org/viewvc?view=rev&rev=542138
Log:
Fixed bug in the createPerson service where the description field wasn't being applied to the Party entity

Modified:
    ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java

Modified: ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java?view=diff&rev=542138&r1=542137&r2=542138
==============================================================================
--- ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java (original)
+++ ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java Mon May 28 00:46:45 2007
@@ -110,6 +110,7 @@
         GenericValue userLogin = (GenericValue) context.get("userLogin");
 
         String partyId = (String) context.get("partyId");
+        String description = (String) context.get("description");
 
         // if specified partyId starts with a number, return an error
         if (partyId != null && partyId.length() > 0 && Character.isDigit(partyId.charAt(0))) {
@@ -144,7 +145,7 @@
             if (statusId == null) {
                 statusId = "PARTY_ENABLED";
             }
-            Map newPartyMap = UtilMisc.toMap("partyId", partyId, "partyTypeId", "PERSON", "createdDate", now, "lastModifiedDate", now, "statusId", statusId);
+            Map newPartyMap = UtilMisc.toMap("partyId", partyId, "partyTypeId", "PERSON", "description", description, "createdDate", now, "lastModifiedDate", now, "statusId", statusId);
             if (userLogin != null) {
                 newPartyMap.put("createdByUserLogin", userLogin.get("userLoginId"));
                 newPartyMap.put("lastModifiedByUserLogin", userLogin.get("userLoginId"));