Fix log level parameter not taken into account in cwsource log table
authorFlorent Cayré <florent.cayre@logilab.fr>
Thu, 13 Oct 2016 12:51:12 +0200
changeset 11712 c9129aae884b
parent 11711 fe0fcb9e1fd0
child 11713 4f2b6586bf78
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
cubicweb/web/views/cwsources.py
--- a/cubicweb/web/views/cwsources.py	Tue Oct 11 14:48:27 2016 +0200
+++ b/cubicweb/web/views/cwsources.py	Thu Oct 13 12:51:12 2016 +0200
@@ -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'))