Fix log level parameter not taken into account in cwsource log table 3.23
authorFlorent Cayré <florent.cayre@logilab.fr>
Tue, 07 Mar 2017 14:27:09 +0100
branch3.23
changeset 12004 1822d36e2c24
parent 11961 a25e52cd8be4
child 12085 032aad6f3586
Fix log level parameter not taken into account in cwsource log table An error in the jquery selector of the html widget controlling the log level was the cause of this bug. Closes #15772634 (grafted from c9129aae884b476455c8ed1ad802efc3a26503a5)
cubicweb/web/views/cwsources.py
--- a/cubicweb/web/views/cwsources.py	Tue Feb 21 10:12:47 2017 +0100
+++ b/cubicweb/web/views/cwsources.py	Tue Mar 07 14:27:09 2017 +0100
@@ -343,7 +343,7 @@
     def render_table(self, w, actions, paginate):
         default_level = self.view.cw_extra_kwargs['default_level']
         if default_level != 'Debug':
-            self._cw.add_onload('$("select.logFilter").val("%s").change();'
+            self._cw.add_onload('$("select.log_filter").val("%s").change();'
                            % self._cw.form.get('logLevel', default_level))
         w(u'\n<form action="#"><fieldset>')
         w(u'<label>%s</label>' % self._cw._(u'Message threshold'))