You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2016/05/21 11:02:06 UTC

svn commit: r1744900 - /ofbiz/branches/release13.07/applications/party/src/org/ofbiz/party/party/PartyServices.java

Author: mridulpathak
Date: Sat May 21 11:02:06 2016
New Revision: 1744900

URL: http://svn.apache.org/viewvc?rev=1744900&view=rev
Log:
[OFBIZ-7098] Remove restriction of setting PARTY_ENABLED as first default status of party. Thanks Suraj Khurana for reporting the issue and providing the patch. Applying fix from trunk r1744893.

Modified:
    ofbiz/branches/release13.07/applications/party/src/org/ofbiz/party/party/PartyServices.java

Modified: ofbiz/branches/release13.07/applications/party/src/org/ofbiz/party/party/PartyServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/party/src/org/ofbiz/party/party/PartyServices.java?rev=1744900&r1=1744899&r2=1744900&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/party/src/org/ofbiz/party/party/PartyServices.java (original)
+++ ofbiz/branches/release13.07/applications/party/src/org/ofbiz/party/party/PartyServices.java Sat May 21 11:02:06 2016
@@ -219,7 +219,7 @@ public class PartyServices {
             GenericValue party = delegator.findOne("Party", UtilMisc.toMap("partyId", partyId), false);
 
             if (party.get("statusId") == null) { // old records
-                party.set("statusId", "PARTY_ENABLED");
+                party.set("statusId", statusId);
             }
 
             String oldStatusId = party.getString("statusId");