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 the 'create new revision' (under 'workflow settings') setting for a content type is checked, a new revision of the node is only created when the user clicks save from the 'edit' tab; a new revision is not created if the user is on the 'webform' tab (ie: making changes to the webform part of a node).
I believe the solution is to create the new revision as part of the node_save call inside of the "webform_components_form_submit" function (line 297) in includes/webform.components.inc.
Comments
Comment #1
quicksketchThis isn't really a bug, Webform doesn't have any ability to work with revisions at all. Even if you saved a new revision after every change to a component, all the revisions would be identical because Webform doesn't track components being added/removed by revision ID, it just uses the NID.
Comment #2
quicksketch