Download & Extend

Not filling in required field resets form

Project:Ubercart Addresses
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:freixas
Status:closed (fixed)

Issue Summary

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.

Comments

#1

Assigned to:Anonymous» freixas

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

I'll try to get this fixed.

#2

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.

AttachmentSizeStatusTest resultOperations
uc_adderess_form.patch1.86 KBIgnored: Check issue status.NoneNone

#3

Status:active» fixed

I never applied the patch, but I can no longer reproduce the problem. Maybe it was elsewhere in the Drupal/Ubercart code base or else some other changes I made fixed this.

#4

Status:fixed» closed (fixed)

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

nobody click here