[FIX] report: /report/download route should not be website enabled

There's a little magic inside the website enabled route modifying the
context's lang, thus breaking the logic to print the report in the
current user's lang. The direct route to display the report should
stay in website_enabled mode, as it allows to switch lang, use the
website translator and so on.
This commit is contained in:
Simon Lejeune 2014-09-12 12:29:29 +02:00
parent 06e1476e3b
commit ce0dcac161
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class ReportController(Controller):
return request.make_response(barcode, headers=[('Content-Type', 'image/png')])
@route(['/report/download'], type='http', auth="user", website=True)
@route(['/report/download'], type='http', auth="user")
def report_download(self, data, token):
"""This function is used by 'qwebactionmanager.js' in order to trigger the download of
a pdf/controller report.