[json controller] check rql is really specified stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 10 Sep 2010 14:45:46 +0200
branchstable
changeset 6204 fd6d8f4d1904
parent 6203 d3dea5f84404
child 6205 41e0e13e10b7
[json controller] check rql is really specified
web/views/basecontrollers.py
--- a/web/views/basecontrollers.py	Fri Sep 10 14:32:38 2010 +0200
+++ b/web/views/basecontrollers.py	Fri Sep 10 14:45:46 2010 +0200
@@ -428,7 +428,7 @@
     def js_render(self, registry, oid, eid=None, selectargs=None, renderargs=None):
         if eid is not None:
             rset = self._cw.eid_rset(eid)
-        elif 'rql' in self._cw.form:
+        elif self._cw.form.get('rql'):
             rset = self._cw.execute(self._cw.form['rql'])
         else:
             rset = None