Different behavior/Do not lose aliases on bulk operation

If the URL-Alias is set manuel and the "Generate automatic URL alias" checkbox is unticked,
the publishing process on Bulk Operations overrides the alias and ticked the checkbox!
But not at saving a node.
The manualy settings of a alias should never be overridden.

Steps to reproduce:
1. Create a node
2. Set URL alias manualy
3. Save node
4. Control: is URL alias the manual one.
5. Go to admin/content.
6. Check your node and publish the node by using the bulk operation.
7. Control: URL alias is overridden and "Generate automatic URL alias" checkbox is ticked.

Proposed resolution

1. Fetch needed information in "pathauto_node_update_alias"
Similary to "pathauto_field_attach_form"
2. Set $node->path['pathauto']

Remaining tasks

Manual testing

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Drapul-Drapul created an issue. See original summary.

Drapul-Drapul’s picture

Status: Patch (to be ported) » Needs review
Dave Reid’s picture

Status: Needs review » Postponed (maintainer needs more info)
Issue tags: -Needs testing review +Needs tests

$node->path['pathauto'] should be set from pathauto_entity_load(). Can you please provide a test case that shows this is not working correctly? I cannot confirm with the current version that this is actually happening.

Status: Postponed (maintainer needs more info) » Needs work

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

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