# HG changeset patch # User Laura Médioni # Date 1426761037 -3600 # Node ID 8f05aaabf3559637271971146f321b26abf850f1 # Parent 699e49d76334f3d25dab00ce670109dea110a2b1 [views] take into account subvid form param in SameETypeListView closes #5098473 diff -r 699e49d76334 -r 8f05aaabf355 web/views/baseviews.py --- a/web/views/baseviews.py Wed May 13 17:12:41 2015 +0200 +++ b/web/views/baseviews.py Thu Mar 19 11:30:37 2015 +0100 @@ -401,10 +401,11 @@ showtitle = kwargs.pop('showtitle', not 'vtitle' in self._cw.form) if showtitle: self.w(u'

%s

' % self.title) - super(SameETypeListView, self).call(**kwargs) + subvid = self._cw.form.pop('subvid', None) + super(SameETypeListView, self).call(vid=subvid, **kwargs) - def cell_call(self, row, col=0, **kwargs): - self.wview(self.item_vid, self.cw_rset, row=row, col=col, **kwargs) + def cell_call(self, row, col=0, vid=None, **kwargs): + self.wview(self.item_vid, self.cw_rset, row=row, col=col, vid=vid, **kwargs) class SameETypeListItemView(EntityView):