Projet

Général

Profil

0001-misc-display-a-different-error-message-for-formdef-s.patch

Frédéric Péters, 02 novembre 2015 13:44

Télécharger (1,05 ko)

Voir les différences:

Subject: [PATCH] misc: display a different error message for formdef submits
 (#8837)

 wcs/formdef.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
wcs/formdef.py
387 387

  
388 388
    def create_form(self, page_no = 0, displayed_fields = None):
389 389
        form = Form(enctype = "multipart/form-data", use_tokens = False)
390
            # had: , use_tokens = not self.confirmation)
390
        form.ERROR_NOTICE = _('There were errors processing the form and '
391
                               'you cannot go to the next page. Do '
392
                               'check below that you filled all fields correctly.')
391 393
        self.add_fields_to_form(form, page_no = page_no, displayed_fields = displayed_fields)
392 394
        return form
393 395

  
394
-