[FIX] survey: remove duplicate browse record
The `prepare_result` dict shouldn't keep a browse record of a survey, as it is explicitely passed to the template by the controller `survey_reporting`
This commit is contained in:
parent
b7e62ae3dc
commit
2a02d644a2
|
@ -321,7 +321,7 @@ class WebsiteSurvey(http.Controller):
|
|||
def prepare_result_dict(self,survey, current_filters=[]):
|
||||
"""Returns dictionary having values for rendering template"""
|
||||
survey_obj = request.registry['survey.survey']
|
||||
result = {'survey':survey, 'page_ids': []}
|
||||
result = {'page_ids': []}
|
||||
for page in survey.page_ids:
|
||||
page_dict = {'page': page, 'question_ids': []}
|
||||
for question in page.question_ids:
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
<div class="oe_structure" />
|
||||
<div class="container">
|
||||
<div class="jumbotron mt32">
|
||||
<t t-set="survey" t-value="survey_dict['survey']"/>
|
||||
<h1><span t-field="survey.title"></span> <span style="font-size:1.5em;" class="fa fa-bar-chart-o pull-right "/></h1>
|
||||
<div t-field="survey.description" class="oe_no_empty" />
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue