Not filling in required field resets form

Scott M. Sanders - May 27, 2009 - 14:43
Project:Ubercart Addresses
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:freixas
Status:active
Description

If a user forgets to fill in a required field, the entire form is reset on next page load.

So the user has to enter in not only that one field but the entire form again (if changes to other fields were made).

At least that's what I found when editing an address anyway.

#1

freixas - May 27, 2009 - 15:10
Assigned to:Anonymous» freixas

You're right! Wonder when that got introduced...

I'll try to get this fixed.

#2

mklangeman - August 27, 2009 - 20:29

I ran into this as well. It has to do with the use of $form_state['storage']. I've attached a patch that should fix the issue.

AttachmentSize
uc_adderess_form.patch 1.86 KB
 
 

Drupal is a registered trademark of Dries Buytaert.