web/views/basecontrollers.py
branchstable
changeset 6239 7832e47d98bc
parent 6238 2f5ebeb7665d
child 6240 fd0cbb801007
--- a/web/views/basecontrollers.py	Tue Sep 14 15:39:28 2010 +0200
+++ b/web/views/basecontrollers.py	Tue Sep 14 15:40:10 2010 +0200
@@ -352,6 +352,8 @@
         stream = view.set_stream()
         if paginate:
             if divid == 'pageContent':
+                # ensure divid isn't reused by the view (e.g. table view)
+                self._cw.form.pop('divid', None)
                 # mimick main template behaviour
                 stream.write(u'<div id="pageContent">')
                 vtitle = self._cw.form.get('vtitle')