Update of /var/cvs/contributions/natmm/templates/natmm/actie/includes
In directory james.mmbase.org:/tmp/cvs-serv6792/templates/natmm/actie/includes

Modified Files:
        nav.jsp 
Log Message:
NMCMS-577 - Don't generate wrong MySQL code in the objectConstraints, add an 
'ADD' between constraints.


See also: 
http://cvs.mmbase.org/viewcvs/contributions/natmm/templates/natmm/actie/includes
See also: http://www.mmbase.org/jira/browse/NMCMS-577


Index: nav.jsp
===================================================================
RCS file: /var/cvs/contributions/natmm/templates/natmm/actie/includes/nav.jsp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- nav.jsp     7 Jul 2008 11:42:18 -0000       1.17
+++ nav.jsp     10 Sep 2008 09:11:23 -0000      1.18
@@ -25,7 +25,12 @@
    int pagesCount = 0;
    %>
    
-       <% objectConstraint += (new SearchUtil()).articleConstraint(nowSec, 
quarterOfAnHour);
+    <%
+    //Please check the navsettings.jsp for details. 2 constraints should be 
seperated by e.g. ' AND '.
+    if (objectConstraint!= null && objectConstraint.length()>0) { 
+      objectConstraint += " AND ";
+    }  
+    objectConstraint += (new SearchUtil()).articleConstraint(nowSec, 
quarterOfAnHour);
        %>
    
    <mm:relatednodes type="<%= objecttype %>" path="<%= "contentrel," + 
objecttype %>" constraints="<%= objectConstraint %>">
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to