From c929f3844f0533d808507eb80648b9765a6b8ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 2 Nov 2015 13:43:49 +0100 Subject: [PATCH] misc: display a different error message for formdef submits (#8837) --- wcs/formdef.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcs/formdef.py b/wcs/formdef.py index f06ac06..bd8eb57 100644 --- a/wcs/formdef.py +++ b/wcs/formdef.py @@ -387,7 +387,9 @@ class FormDef(StorableObject): def create_form(self, page_no = 0, displayed_fields = None): form = Form(enctype = "multipart/form-data", use_tokens = False) - # had: , use_tokens = not self.confirmation) + form.ERROR_NOTICE = _('There were errors processing the form and ' + 'you cannot go to the next page. Do ' + 'check below that you filled all fields correctly.') self.add_fields_to_form(form, page_no = page_no, displayed_fields = displayed_fields) return form -- 2.6.2