When I use the "delete" link provided for a Field Collection field, it successfully deletes the field from my node. However, it also drops a custom node alias, if I have one set. In that case, the node alias is reverted to the pattern set in the Pathauto module.Here's the steps to reproduce:
1) Add a new content type, called Test Type.
2) Add a Field Collection field to this content type, called field_foo
3) Add a Text field to field_foo, called field_foo_bar
4) Create a node of type Test Type, with "My Title" entered for title and "abcde" entered for field_foo_bar
5) Give your new node a custom alias ("my-alias"), instead of using the default alias established by the Pathauto module (content/my-title).
6) Go to the view page for this node and hit the delete link for "abcde", then confirm the deletion.
7) Observe that the alias for this node is now "content/test" instead of "my-alias".
I am running Field Collection 7.x-1.x-dev and Pathauto 7.x-1.0-rc2
Comments
Comment #1
fagoField-collection just issues a node_save() on the host entity. So if the alias goes away then, this is probably a bug of pathauto. Please look for a respective issue in pathauto's queue and link it here.
Setting to postponed, so it is visible here until the issue is fixed in pathauto.
Comment #2
somanyfish commentedThanks for taking a look at this. I couldn't find the same issue in Pathauto's queue, so I created a new issue: http://drupal.org/node/1269926.
Comment #3
jmuzz commentedHere is a link to the issue, so you can see when it gets crossed out.
#936222: Merge in pathauto_persist module functionality to prevent losing manual aliases with node_save() calls
Surely it will be fixed any day now.
Comment #4
jmuzz commented