From 6f7f1ea115ed53c182c409e2cab14b7eb71144d3 Mon Sep 17 00:00:00 2001 From: stefan Date: Fri, 20 Feb 2009 04:02:38 +0000 Subject: [PATCH] Fix context for query form to be a class. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4149 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/templating.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index 4fc6e5d..772ad61 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -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) -- 2.30.2