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
Comment | File | Size | Author |
---|---|---|---|
pathautoBulkupdate.patch | 1.43 KB | Drapul-Drapul | |
Comments
Comment #2
Drapul-Drapul CreditAttribution: Drapul-Drapul commentedComment #3
Dave Reid$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.