Code

Fix context for query form to be a class.
authorstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 20 Feb 2009 04:02:38 +0000 (04:02 +0000)
committerstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 20 Feb 2009 04:02:38 +0000 (04:02 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4149 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/templating.py

index 4fc6e5dd90dc7a4ea0694542acdc9c46e78324f0..772ad61af69365bba24eada56d4fba541c5bf297 100644 (file)
@@ -1102,7 +1102,10 @@ class _HTMLItem(HTMLInputMixin, HTMLPermissions):
 
         # new template, using the specified classname and request
         pt = self._client.instance.templates.get(req.classname, 'search')
-
+        # The context for a search page should be the class, not any
+        # node.
+        self._client.nodeid = None
+        
         # use our fabricated request
         return pt.render(self._client, req.classname, req)