I have form with 3 steps, first step contain date field. When the first step is submitted the value of the field is stored properly but when the next step is submitted the value is cleared.
UPDATE:
the bug is not in this module.
as of file fields, this is a drupal core issue.
in #1205822: File(s) silently deleted when #access=false i have contributed a core patch
it needs some tests to get accepted but can be used right now.
as of date fields: this is a date module issue.
in #1144074: does not play well with multistep / does not validate correctly when #access=false i have contributed a patch which needs to be reworked (look which parts are already in HEAD and roll a new patch with the rest)
maybe someone can help out there or provide funding.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | multistep_fix_validate_dates_1168418_12.patch | 906 bytes | svipsa |
Comments
Comment #1
Peter Bex commentedThis also happens with boolean fields.
Comment #2
geek-merlindoes this still happen with current dev?
Comment #3
perarnet commentedI also have this problem with latest dev version. Also have the same problem with image field using filefield_paths
Comment #4
geek-merlinas of date fields: this is a date module issue.
in #1144074: does not play well with multistep / does not validate correctly when #access=false i have contributed a patch which needs to be reworked.
maybe someone can help out there or provide funding.
as of file fields, this is a drupal core issue.
in #1205822: File(s) silently deleted when #access=false i have contributed a core patch which i hope gets accepted.
you might help and test this patch and set status to "reviewed..." there!
using both patches i'm running a production site with file, image and date fields.
hope this helps ya!
Comment #5
Anonymous (not verified) commentedI have this problem with image file fields.
Step 1: Title
Step 2: Image
I can upload the image & click "save" - no problem.
Now, if I edit the nod and start at Step 1, and go Next > to Step 2: now the image file is missing. It's gone.
Comment #6
geek-merlin@morningtime: as image uses file.module this should be solved by the core patch mentioned in #4
did you try this?
Comment #7
Anonymous (not verified) commentedAha, hadn't seen that. I believe it solved my problem.
Comment #8
geek-merlin@morningtime: so you might want to confirm this at #1205822: File(s) silently deleted when #access=false so to seed up this going core!
Comment #9
doana commentedI needed a quick solution until this issue is solved. A quick workaround for this is to use hook_form_alter and unset the fields that aren't present on the step that you're currently on.
Comment #10
perarnet commentedAxel: Can you try to repatch in the date module? Karens closed your issue due to no more information.
Comment #11
geek-merlinsorry, don't have time for this right now, but added an explicit issue update.
Comment #12
dtrdewaele commentedReimplemented this piece of code in a new project with locale module on and this gives a lot off errors :) Works without locale enabled.
Comment #12.0
dtrdewaele commentedadded summary
Comment #13
svipsa commentedAdded patch to fix validate dates.