Author: doogie
Date: Thu Dec  9 15:14:36 2010
New Revision: 1043997

URL: http://svn.apache.org/viewvc?rev=1043997&view=rev
Log:
Bother; this code was never ever run.  The findByAnd variant it ended up
using was the Object... version.  In essence, creating a new Object[]
{map, null, String}, and then trying to convert that whole thing to a
map(which would have failed).

broken since: 745407, initial checkin
date: Wed Feb 18 08:04:48 2009 +0000

Modified:
    ofbiz/trunk/applications/content/src/org/ofbiz/content/ConvertTree.java

Modified: 
ofbiz/trunk/applications/content/src/org/ofbiz/content/ConvertTree.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/ConvertTree.java?rev=1043997&r1=1043996&r2=1043997&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/ConvertTree.java 
(original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/ConvertTree.java Thu 
Dec  9 15:14:36 2010
@@ -280,7 +280,7 @@ In order ta make this service active add
                     if (contentName.length()>100) {
                         contentName = contentName.substring(0,100);
                     }
-                    List<GenericValue> contents = 
delegator.findByAnd("Content", 
UtilMisc.toMap("contentName",contentName),null,"-contentId");
+                    List<GenericValue> contents = 
delegator.findByAnd("Content", 
UtilMisc.toMap("contentName",contentName),UtilMisc.toList("-contentId"));
                     if (contents!=null) {
                         Iterator<GenericValue> contentCheck = 
contents.iterator();
                         while (contentCheck.hasNext() && 
contentNameMatch==false) {


Reply via email to