Author: lektran
Date: Mon May 28 00:39:41 2007
New Revision: 542136
URL:
http://svn.apache.org/viewvc?view=rev&rev=542136Log:
Fixed bug where the description field wasn't being applied to the Party entity
Modified:
ofbiz/branches/release4.0/applications/party/src/org/ofbiz/party/party/PartyServices.java
Modified: ofbiz/branches/release4.0/applications/party/src/org/ofbiz/party/party/PartyServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/party/src/org/ofbiz/party/party/PartyServices.java?view=diff&rev=542136&r1=542135&r2=542136==============================================================================
--- ofbiz/branches/release4.0/applications/party/src/org/ofbiz/party/party/PartyServices.java (original)
+++ ofbiz/branches/release4.0/applications/party/src/org/ofbiz/party/party/PartyServices.java Mon May 28 00:39:41 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"));