svn commit: r604530 - /ofbiz/trunk/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java

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

svn commit: r604530 - /ofbiz/trunk/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java

mrisaliti
Author: mrisaliti
Date: Sat Dec 15 15:38:51 2007
New Revision: 604530

URL: http://svn.apache.org/viewvc?rev=604530&view=rev
Log:
Fixed a very trivial bug into PartyContentWrapper.getPartyContentTextList method uses "contentPurposeEnumId" field from "PartyContent" entity that was removed (issue OFBIZ-1484), patch from Rashko Rejmer.

Modified:
    ofbiz/trunk/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java

Modified: ofbiz/trunk/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java?rev=604530&r1=604529&r2=604530&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java (original)
+++ ofbiz/trunk/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java Sat Dec 15 15:38:51 2007
@@ -231,7 +231,7 @@
     }
 
     public static List getPartyContentTextList(GenericValue party, String partyContentTypeId, Locale locale, String mimeTypeId, GenericDelegator delegator, LocalDispatcher dispatcher) throws GeneralException, IOException {
-        List partyContentList = delegator.findByAndCache("PartyContent", UtilMisc.toMap("partyId", party.getString("partyId"), "contentPurposeEnumId", partyContentTypeId), UtilMisc.toList("-fromDate"));
+        List partyContentList = delegator.findByAndCache("PartyContent", UtilMisc.toMap("partyId", party.getString("partyId"), "partyContentTypeId", partyContentTypeId), UtilMisc.toList("-fromDate"));
         partyContentList = EntityUtil.filterByDate(partyContentList);
 
         List contentList = FastList.newInstance();