Thanks for adding support for the node clone module. I hope this is an easy bug to fix.

Here is how to replicate this issue.

- Goto admin/settings/clone
- Set 'Method to use when cloning a node' to 'Pre-populate the node form fields'
- Clone a webform with validation rules

BTW, validation rules are cloned perfectly when 'Save as a new node then edit' is used. For the time being this is a pretty reasonable work-around.

~jake

Comments

jp.stacey’s picture

I can confirm this bug exists, and the workaround too. Using webform validation 6.x-1.3 and node clone 6.x-1.2

svendecabooter’s picture

This is caused by an inconsistency in the clone module.
I created a patch for that module to fix this problem. See #939016: Use $node->clone_from_original_nid consistently.

If this patch wouldn't get accepted, I could probably still work around this from within the webform_validation module, but for now I prefer to get this problem fixed upstream.

svendecabooter’s picture

Please try to apply the patch mentioned above and report back if this doesn't fix the problem reported in this issue.

bleeuwen’s picture

I use extra validation rules (in an own module).
When I use node)clone 1.2
The clone proces does not come to an and (empty page). When I examine the clone only my first validation-rule has been copied.
The patch clone_from_original_nid_form_element does not solve the problem.

When I use the older version of node_clone, the proces comes to an end, but none of the validation rules alre cloned.

bleeuwen’s picture

See my post # 4 to this thread

svendecabooter’s picture

Status: Active » Postponed

@bleeuwen: could you post your custom code to see if that has anything to do with it?
If you don't want to have it in public, send it to me through my contact form.

Marking this issue as postponed until #939016: Use $node->clone_from_original_nid consistently gets fixed.

bleeuwen’s picture

Hi

the given patch (add a clone_form_alter function to clone.module) solved my problem

Thanks

cyberwolf’s picture

Subscribing.

svendecabooter’s picture

Status: Postponed » Active

And that patch just got committed, so putting this back to active

liam morland’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Drupal 6 is no longer supported. If this issue exists in a later version of webform_validation, please re-open and update the version number.

liam morland’s picture

Status: Closed (won't fix) » Closed (outdated)