web/views/boxes.py
changeset 6573 58f166d41420
parent 6536 fd059ab1a502
child 6612 2f2871fbfb51
--- a/web/views/boxes.py	Thu Oct 21 08:23:38 2010 +0200
+++ b/web/views/boxes.py	Thu Oct 21 09:48:38 2010 +0200
@@ -244,9 +244,11 @@
             # XXX do not modify dispctrl!
             self.cw_extra_kwargs['dispctrl'].setdefault('subvid', 'outofcontext')
             self.cw_extra_kwargs['dispctrl'].setdefault('use_list_limit', 1)
+        if title:
+            self.cw_extra_kwargs['title'] = title
         box = self._cw.vreg['ctxcomponents'].select(
             'rsetbox', self._cw, rset=self.cw_rset, vid='autolimited',
-            title=title, **self.cw_extra_kwargs)
+            **self.cw_extra_kwargs)
         box.render(self.w)