[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:
Kirti Choudhary
2017-09-25 10:58:04 +02:00
committed by Yannick Tivisse
parent b94939377a
commit 044ece7024
+1 -1
View File
@@ -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