Fix redirection to parent in archive unit sub-archive units tab
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 25 Aug 2016 11:48:41 +0200
changeset 1548 989a88822b51
parent 1547 184733f1dfe8
child 1549 0129ebd034a0
Fix redirection to parent in archive unit sub-archive units tab
views/archiveunit.py
--- a/views/archiveunit.py	Thu Aug 25 16:48:04 2016 +0200
+++ b/views/archiveunit.py	Thu Aug 25 11:48:41 2016 +0200
@@ -247,7 +247,7 @@
         rset = seq.related(self.rtype, self.role)
         if rset:
             subvid = 'seda.listitem'
-            self._cw.view('list', rset=rset, w=self.w, subvid=subvid, parent=seq,
+            self._cw.view('list', rset=rset, w=self.w, subvid=subvid, parent=entity,
                           tabid=self.__regid__)