Author: hansbak
Date: Mon Jun 8 05:20:21 2009
New Revision: 782529
URL:
http://svn.apache.org/viewvc?rev=782529&view=revLog:
correction on r781752 for old party record with no statusId set, as reported by Anil in the mailing list
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?rev=782529&r1=782528&r2=782529&view=diff==============================================================================
--- ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java (original)
+++ ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java Mon Jun 8 05:20:21 2009
@@ -289,6 +289,9 @@
// update status by separate service
String oldStatusId = party.getString("statusId");
+ if (party.get("statusId") == null) { // old records
+ party.set("statusId", "PARTY_ENABLED");
+ }
person.setNonPKFields(context);
party.setNonPKFields(context);