diff options
| author | Fabien Meghazi <fme@openerp.com> | 2014-05-14 13:58:34 +0200 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2014-05-14 13:58:34 +0200 |
| commit | 1ce14dbe6af78956b4f158e0cdc3b49a211ad104 (patch) | |
| tree | e41356f915e280ff05f6c530d07712fc9ed440ed | |
| parent | 8e3a8bb0feaec9e48bb597caaeda1120d346ce94 (diff) | |
[FIX] survey route that is only accessed with POST verb
| -rw-r--r-- | addons/survey/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/survey/controllers/main.py b/addons/survey/controllers/main.py index 0e708d96f43..2f65d92cd4c 100644 --- a/addons/survey/controllers/main.py +++ b/addons/survey/controllers/main.py @@ -234,7 +234,7 @@ class WebsiteSurvey(http.Controller): # AJAX submission of a page @http.route(['/survey/submit/<model("survey.survey"):survey>'], - type='http', auth='public', multilang=True, website=True) + type='http', methods=['POST'], auth='public', multilang=True, website=True) def submit(self, survey, **post): _logger.debug('Incoming data: %s', post) page_id = int(post['page_id']) |
