[facets] duhh, necessary fromformfilter hidden was missing stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 09 Sep 2009 12:28:36 +0200
branchstable
changeset 3129 fab471bee6c1
parent 3128 37c310ca6506
child 3130 2486163c4630
[facets] duhh, necessary fromformfilter hidden was missing
web/data/cubicweb.facets.js
web/views/tableview.py
--- a/web/data/cubicweb.facets.js	Wed Sep 09 12:27:41 2009 +0200
+++ b/web/data/cubicweb.facets.js	Wed Sep 09 12:28:36 2009 +0200
@@ -66,6 +66,7 @@
 	extraparams['divid'] = divid;
 	copyParam(zipped, extraparams, 'divid');
 	copyParam(zipped, extraparams, 'subvid');
+	copyParam(zipped, extraparams, 'fromformfilter');
 	// paginate used to know if the filter box is acting, in which case we
 	// want to reload action box to match current selection (we don't want
 	// this from a table filter)
--- a/web/views/tableview.py	Wed Sep 09 12:27:41 2009 +0200
+++ b/web/views/tableview.py	Wed Sep 09 12:28:36 2009 +0200
@@ -59,7 +59,9 @@
                xml_escape(dumps([divid, 'table', False, vidargs])))
         self.w(u'<fieldset id="%sForm" class="%s">' % (divid, hidden and 'hidden' or ''))
         self.w(u'<input type="hidden" name="divid" value="%s" />' % divid)
-        filter_hiddens(self.w, facets=','.join(wdg.facet.id for wdg in fwidgets), baserql=baserql)
+        self.w(u'<input type="hidden" name="fromformfilter" value="1" />')
+        filter_hiddens(self.w, facets=','.join(wdg.facet.id for wdg in fwidgets),
+                       baserql=baserql)
         self.w(u'<table class="filter">\n')
         self.w(u'<tr>\n')
         for wdg in fwidgets: