web/views/basecontrollers.py
changeset 7606 01b49ec8fe80
parent 7605 48abeac162fd
child 7609 fbefd1b9e587
--- a/web/views/basecontrollers.py	Fri Jul 01 15:26:43 2011 +0200
+++ b/web/views/basecontrollers.py	Fri Jul 01 15:26:44 2011 +0200
@@ -504,8 +504,11 @@
             facetbase.prepare_select(select, filtered_variable)
             update_map = {}
             for facetid in facetids:
-                facet = get_facet(self._cw, facetid, rqlst.children[0], mainvar)
-                update_map[facetid] = facet.possible_values()
+                facet = facetbase.get_facet(self._cw, facetid, select, filtered_variable)
+                try:
+                    update_map[facetid] = facet.possible_values()
+                except facetbase.DontUpdateFacet:
+                    continue
             return update_map
 
     def js_unregister_user_callback(self, cbname):