[FIX] portal: avoid crash when using the wrong HTTP method

opw-2078313
This commit is contained in:
Jeremy Kersten
2019-09-03 14:01:00 +02:00
parent e5f673087b
commit cc1e8f2876
+1 -1
View File
@@ -167,7 +167,7 @@ class CustomerPortal(Controller):
'error_message': [],
})
if post:
if post and request.httprequest.method == 'POST':
error, error_message = self.details_form_validate(post)
values.update({'error': error, 'error_message': error_message})
values.update(post)