web/views/basecomponents.py
changeset 4230 6514a76eaa5c
parent 4085 002ba2a3bb13
child 4252 6c4f109c2b03
--- a/web/views/basecomponents.py	Wed Jan 13 16:00:42 2010 +0100
+++ b/web/views/basecomponents.py	Wed Jan 13 16:01:34 2010 +0100
@@ -223,7 +223,7 @@
 
     def cell_call(self, row, col, view):
         entity = self.cw_rset.get_entity(row, col)
-        url = entity.absolute_url(vid=view.id, __template='pdf-main-template')
+        url = entity.absolute_url(vid=view.__regid__, __template='pdf-main-template')
         iconurl = self._cw.build_url('data/pdf_icon.gif')
         label = self._cw._('Download page as pdf')
         self.w(u'<a href="%s" title="%s" class="toolbarButton"><img src="%s" alt="%s"/></a>' %