Form settings:
[x] Expose webform component strings suitable for translation.
[x] Keep a single webform across a translation set.
[x] Automatically save as draft between pages
The problem:
When submitting a multi-page webform from a translation of the source webform, an sql error is returned in hook_webform_submission_load because $submissions is not set.
The problem originates in webform_localization_node_view, where webform_node_view is called with the translated node object, but webform_node_view needs the source translation nid set to load the draft submission.
Solution:
Fool webform by changing the nid temporarily and reset it afterwards.
Patch will follow
Comments
Comment #1
rv0 commentedPatch:
Comment #2
GDrupal commented@rv0 thanks for this great work.. this is fixed using your patch and some minor tweaks.
http://drupalcode.org/project/webform_localization.git/commit/c24a1b1