[FIX] survey: Pass 'survey' when rendering 'nopages' template
As survey is used on the template, this will avoid a crash.
This commit is contained in:
committed by
Yannick Tivisse
parent
b94939377a
commit
044ece7024
@@ -32,7 +32,7 @@ class WebsiteSurvey(http.Controller):
|
||||
|
||||
# If there is no pages
|
||||
if not survey.page_ids:
|
||||
return request.render("survey.nopages")
|
||||
return request.render("survey.nopages", {'survey': survey})
|
||||
|
||||
# Everything seems to be ok
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user