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.
The results from the webform submission being an empty array rather than a stdclass object on save of a draft in the hook_submit function.
Comment | File | Size | Author |
---|---|---|---|
#4 | webform_entity-draft_saving-1328538-4.patch | 601 bytes | Iztok |
Comments
Comment #1
tizzo CreditAttribution: tizzo commentedCommitted a fix
Comment #3
skylord CreditAttribution: skylord commentedBTW, as for Webform 4.x $form['#submission'] is 'FALSE' for drafts, so fix is slightly different i.e:
Comment #4
Iztok CreditAttribution: Iztok commentedA patch file for the fix
Comment #5
wgallop99 CreditAttribution: wgallop99 commentedThis worked for me! Thanks for the patch.