roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r395646 - /incubator/roller/trunk/src/org/roller/business/hibernate/HibernateRefererManagerImpl.java
Date Thu, 20 Apr 2006 17:20:24 GMT
Author: agilliland
Date: Thu Apr 20 10:20:21 2006
New Revision: 395646

URL: http://svn.apache.org/viewcvs?rev=395646&view=rev
Log:
fixing applyRefererFilters() to check that excerpts is null OR "" because "" seems to be the
new default value.


Modified:
    incubator/roller/trunk/src/org/roller/business/hibernate/HibernateRefererManagerImpl.java

Modified: incubator/roller/trunk/src/org/roller/business/hibernate/HibernateRefererManagerImpl.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/business/hibernate/HibernateRefererManagerImpl.java?rev=395646&r1=395645&r2=395646&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/roller/business/hibernate/HibernateRefererManagerImpl.java
(original)
+++ incubator/roller/trunk/src/org/roller/business/hibernate/HibernateRefererManagerImpl.java
Thu Apr 20 10:20:21 2006
@@ -164,7 +164,7 @@
                 or.add(Expression.ilike("refererUrl","%"+ignoreWord+"%"));
             }
             criteria.add(Expression.conjunction()
-            .add(Expression.isNull("excerpt"))
+            .add(Expression.disjunction().add(Expression.isNull("excerpt")).add(Expression.eq("excerpt",
"")))
             .add(or)
             );
             
@@ -203,7 +203,7 @@
                 or.add(Expression.ilike("refererUrl","%"+ignoreWord+"%"));
             }
             criteria.add(Expression.conjunction()
-            .add(Expression.isNull("excerpt"))
+            .add(Expression.disjunction().add(Expression.isNull("excerpt")).add(Expression.eq("excerpt",
"")))
             .add(Expression.eq("website",website))
             .add(or)
             );



Mime
View raw message