From: stefan Date: Fri, 20 Feb 2009 04:02:38 +0000 (+0000) Subject: Fix context for query form to be a class. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6f7f1ea115ed53c182c409e2cab14b7eb71144d3;p=roundup.git 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 --- 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)