web/facet.py
changeset 7624 ce020f90fb8e
parent 7618 5395007c415c
child 7625 ae4cb4153490
--- a/web/facet.py	Thu Jul 07 11:10:50 2011 +0200
+++ b/web/facet.py	Thu Jul 07 11:33:39 2011 +0200
@@ -256,7 +256,8 @@
             # XXX: X title LOWER(T) if it makes sense?
             return None
         if rschema.final:
-            if len(ovar.stinfo['relations']) == 1:
+            if len(ovar.stinfo['relations']) == 1 \
+                   and not ovar.stinfo.get('having'):
                 # attribute selection
                 return ovar
             return None