Skip to content

Commit be6adce

Browse files
committed
Fix context for query form to be a class.
1 parent b22ddda commit be6adce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

roundup/cgi/templating.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,10 @@ def renderQueryForm(self):
11021102

11031103
# new template, using the specified classname and request
11041104
pt = self._client.instance.templates.get(req.classname, 'search')
1105-
1105+
# The context for a search page should be the class, not any
1106+
# node.
1107+
self._client.nodeid = None
1108+
11061109
# use our fabricated request
11071110
return pt.render(self._client, req.classname, req)
11081111

0 commit comments

Comments
 (0)