[treeview] avoid potential interference with subvid param from form
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 29 Jun 2009 14:12:18 +0200
changeset 2209 2b91abd9f5a4
parent 2187 00631850a69e
child 2234 1fbcf202882d
[treeview] avoid potential interference with subvid param from form
web/views/treeview.py
--- a/web/views/treeview.py	Mon Jun 29 13:57:31 2009 +0200
+++ b/web/views/treeview.py	Mon Jun 29 14:12:18 2009 +0200
@@ -26,7 +26,7 @@
 
     def call(self, subvid=None, treeid=None, initial_load=True):
         if subvid is None:
-            subvid = self.req.form.pop('subvid', 'oneline') # consume it
+            subvid = self.req.form.pop('treesubvid', 'oneline') # consume it
         if treeid is None:
             treeid = self.req.form.pop('treeid', None)
             if treeid is None:
@@ -116,7 +116,7 @@
                                              pageid=self.req.pageid,
                                              treeid=treeid,
                                              fname='view',
-                                             subvid=vid))
+                                             treesubvid=vid))
             divclasses = ['hitarea']
             if is_open:
                 liclasses.append('collapsable')