Closed (fixed)
Project:
Webform Validation
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2010 at 11:59 UTC
Updated:
1 Apr 2011 at 12:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
svendecabooterDo you use webform 2 or 3?
I could have sworn this worked, but I think I also tried this with webform 2.
I'll have to go back and run some tests for this when I find some time.
Comment #2
tobiasbWebform 3.x, sorry forgot it. element_children() should the right way and perhaps a recursive function with a static $variable.
Comment #3
tobiasbOk, with this patch it should work now.
Comment #4
svendecabooterHi tobiasb,
Thanks a lot for contributing your patch!
From your original message I didn't understand that the problem was related to fieldsets in multipage forms.
I tested your patch with various types of forms, and the code seems to make absolutely sense, so i committed it.
Thanks again for finding this problem
Comment #5
svendecabooterComment #6
Greg Varga commentedI found a bug in tobiasb's fix.
Sorry, I can't create fancy patches (I will learn I promise!:), but here is the code:
webform_validation.module (version = 6.x-1.3)
ORIGINAL VERSION: line 112-117
UPDATED VERSION: line 112-120
One step > 1 the $form_state root key changes from "webform" to "storage" so in tobiasb's fix the page number never loads. In the new code, we double check the page number using the new form key.
This bug http://drupal.org/node/996894 is a duplicate of this same issue.
I hope this helps. Let me know if anything is not clear or if I am talking rubbish! :)
Cheers,
Gergely Varga
http://42droids.co.uk
Comment #7
FreeFox commentedWith the last modification it works like a charm. Thanks a lot Gergely.
Please commit
Comment #8
umberto. commentedIt works for me too (6.x-1.3).
Thanks a lot
Comment #9
svendecabooterThe $page_count issue has been addressed now.
If possible, please git clone the 6.x-1.x branch and check if that version resolves your problems correctly.
Comment #10
svendecabooter