esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r979026 - /incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
Date Sun, 25 Jul 2010 11:39:27 GMT
Author: vdichev
Date: Sun Jul 25 11:39:27 2010
New Revision: 979026

URL: http://svn.apache.org/viewvc?rev=979026&view=rev
Log:
ESME-212 Fix for messages showing from private pools.

Modified:
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala?rev=979026&r1=979025&r2=979026&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala Sun Jul
25 11:39:27 2010
@@ -202,7 +202,8 @@ object Message extends Message with Long
         Privilege.findViewablePools(user.id.is)
       }                                      
     val newQueryParams: Seq[QueryParam[Message]] = viewablePools match {
-      case Full(pools: List[Long]) if !pools.isEmpty => List(
+      case Full(Nil) => List(By(pool, Empty))
+      case Full(pools: List[Long]) => List(
         BySql(" POOL in ( ?" + ( ", ?" * (pools.size - 1)) + " ) OR POOL IS NULL ",
               IHaveValidatedThisSQL("vdichev", "22 June 2009"),
               pools.toSeq:_*)



Mime
View raw message