web/views/basecontrollers.py
branchstable
changeset 6204 fd6d8f4d1904
parent 6109 47d9c0e0f7b7
child 6207 c3f11fadf9ed
--- 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