[FIX] portal: avoid crash when using the wrong HTTP method
opw-2078313
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user