Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When validation return errors, in a 'not first step', the $form and $form_state are completely empty. This is causing a lot of issues on my system (and possibly is causing with other modules too)... I don't figured out the problem yet, but I appreciate if anyone can help me.
Comment | File | Size | Author |
---|---|---|---|
#7 | msnf-form_node_after_build_form-2022925-2.patch | 1.17 KB | tregismoreira |
#6 | msnf-form_node_after_build_form-2022925.patch | 1.01 KB | guilopes |
#3 | msnf-prevent_caching_form_state-2022925.patch | 514 bytes | guilopes |
Comments
Comment #1
tregismoreira CreditAttribution: tregismoreira commentedThis is causing problem with progress block too. Look at this another issue #1895794: progress block disappears when node submitted with validation errors.
Comment #2
tregismoreira CreditAttribution: tregismoreira commentedHmm, I think this is occurring in all steps (even the first step).
Comment #3
guilopes CreditAttribution: guilopes commentedthis patch solves the problems
Comment #4
tregismoreira CreditAttribution: tregismoreira commentedThe patch #3 works perfectly for me! Thanks a lot, @guilopes ;)
Comment #5
tregismoreira CreditAttribution: tregismoreira commentedOh, sucks! Actually the patch #3 broke ALL the ajaxes in the form :(
Comment #6
guilopes CreditAttribution: guilopes commentedthis new patch solves problems with AJAX :-) @tregismoreira
Comment #7
tregismoreira CreditAttribution: tregismoreira commentedGreat patch, it solves my problem! Thanks again! :D
I just adjusted a few things in the code (comments, spacing, etc). Here's updated patch.
Comment #8
CKIDOWThis patch works BUT it causes the error, that if you click "previous" button the state values from the previous steps are not restored.
Comment #9
rooby CreditAttribution: rooby commented