When using Node Export to import forms between sites, I encountered an error when trying to import forms prior to the preview page functionality into the latest 4.x version. Because these forms do not have columns for "preview_excluded_components" (or other preview fields), they throw PDO errors.

We could increase the resiliency of our new node creation by populating Webforms with the default values before saving them to the database. Patch attached.

CommentFileSizeAuthor
webfrm_defaults_insert.patch752 bytesquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Status: Needs review » Fixed

Committed to 7.x-4.x.

Status: Fixed » Needs work

The last submitted patch, webfrm_defaults_insert.patch, failed testing.

quicksketch’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

fenstrat’s picture

Version: 7.x-4.x-dev » 8.x-4.x-dev
Assigned: Unassigned » fenstrat
Status: Closed (fixed) » Patch (to be ported)

Needs porting to 8.x-4.x.

fenstrat’s picture

Version: 8.x-4.x-dev » 7.x-4.x-dev
Assigned: fenstrat » Unassigned
Status: Patch (to be ported) » Fixed

Committed and pushed 3be0c5a to 8.x-4.x. Thanks!

  • Commit 376645a on 8.x-4.x authored by quicksketch, committed by fenstrat:
    Issue #2198775 by quicksketch: Importing/exporting between sites may...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.