Update of 
/var/cvs/contributions/CMSContainer/cmsc/portlets/src/java/com/finalist/cmsc/portlets
In directory 
james.mmbase.org:/tmp/cvs-serv1603/cmsc/portlets/src/java/com/finalist/cmsc/portlets

Modified Files:
      Tag: b1_4
        ContentChannelPortlet.java 
Log Message:
Make sorting from the view possible for the content channel portlet.


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/portlets/src/java/com/finalist/cmsc/portlets


Index: ContentChannelPortlet.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/portlets/src/java/com/finalist/cmsc/portlets/ContentChannelPortlet.java,v
retrieving revision 1.10.2.1
retrieving revision 1.10.2.2
diff -u -b -r1.10.2.1 -r1.10.2.2
--- ContentChannelPortlet.java  25 Feb 2008 16:25:45 -0000      1.10.2.1
+++ ContentChannelPortlet.java  22 Aug 2008 13:30:36 -0000      1.10.2.2
@@ -149,8 +149,14 @@
          }
          setAttribute(req, "offset", offset);
 
-         String orderby = preferences.getValue(ORDERBY, null);
-         String direction = preferences.getValue(DIRECTION, null);
+         String orderby = req.getParameter(ORDERBY);
+         if(orderby == null) {
+                orderby = preferences.getValue(ORDERBY, null);
+         }
+         String direction = req.getParameter(DIRECTION);
+         if(direction == null) {
+                direction = preferences.getValue(DIRECTION, null);
+         }
          String useLifecycle = preferences.getValue(USE_LIFECYCLE, null);
 
          String archive = preferences.getValue(ARCHIVE, null);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to