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

Modified Files:
        ContentChannelPortlet.java 
Log Message:
Fixed CMSC-1051 (also on the branch): Made 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
See also: http://www.mmbase.org/jira/browse/CMSC-1051


Index: ContentChannelPortlet.java
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/portlets/src/java/com/finalist/cmsc/portlets/ContentChannelPortlet.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- ContentChannelPortlet.java  10 May 2008 16:31:23 -0000      1.12
+++ ContentChannelPortlet.java  22 Aug 2008 13:32:45 -0000      1.13
@@ -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