Problem/Motivation

When used with the latest webforms module, the $entity->original is not always set, which can result in fatal errors during creation of new webforms.

Steps to reproduce

Enable the module and try to create a new webform.

Proposed resolution

Check if $entity->original is empty.

Remaining tasks

Check/QA.

CommentFileSizeAuthor
config-track-check-original-01.patch900 bytesalexrayu

Comments

alexrayu created an issue. See original summary.

hchonov’s picture

Project: Config Track » Webform
Version: 1.0.0-alpha1 » 6.3.x-dev

This is then rather an issue for the webform module as ->original is set by the Drupal Entity API. Moving the issue there, please provide more information.

hchonov’s picture

Status: Needs review » Postponed (maintainer needs more info)
iprosoft’s picture

Same problem caused by module_webform_presave hook..
https://www.drupal.org/project/webform_civicrm/issues/3581344#comment-16525792