Download & Extend

Form errors stay after form submission if disable_redirect is enabled

Project:Ajax
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:jide
Status:needs work

Issue Summary

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

Comments

#1

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

Brendon,

I confirm the issue has been fixed.

#3

Status:fixed» closed (fixed)

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

#4

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

#5

Priority:normal» minor
Status:closed (fixed)» needs work

On my installation drop-down boxes still retain their error class after correct submission. Tested in Firefox and Chrome, ajax dev release, on a webform block with disable_redirect enabled.