Form errors stay after form submission if disable_redirect is enabled

jide - March 22, 2009 - 13:34
Project:Ajax
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:jide
Status:closed
Description

When you submit a form with validation errors, then correct these errors and submit the form again, errors still show.
A simple fix is to remove errors classes in the form :

$('.form-item :input', args.local.form[0]).removeClass('error');

Here is a patch.

AttachmentSize
ajax_disable_redirect.patch473 bytes

#1

brendoncrawford - April 17, 2009 - 07:32
Status:patch (to be ported)» fixed

Jide,

I think this may have been fixed in one of the past dev releases, as I am not able to reproduce this issue. Please re-open bug if this issue still occurs.

Thanks,
brendon

#2

jide - April 17, 2009 - 12:14

Brendon,

I confirm the issue has been fixed.

#3

System Message - May 1, 2009 - 12:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#4

2pha - September 3, 2009 - 05:10

thanks, both the latest release and dev version I downloaded today needed this.

 
 

Drupal is a registered trademark of Dries Buytaert.