When changing a user's name, the blog path should be updated--currently, it is not.
See attached patch for proposed solution.
| Comment | File | Size | Author |
|---|---|---|---|
| pathauto_16.patch | 751 bytes | ms2011 |
When changing a user's name, the blog path should be updated--currently, it is not.
See attached patch for proposed solution.
| Comment | File | Size | Author |
|---|---|---|---|
| pathauto_16.patch | 751 bytes | ms2011 |
Comments
Comment #1
gregglesCan you explain why the update fails and why your patch fixes it?
Comment #2
ms2011 commentedExisting code is referencing the wrong variable.
When the hook is invoked with $op='update', the new values are provided in the $edit variable.
The current version is looking in the $user variable, which contains the old values before the changes were made.
Thus, it detects no changes and fails to update the URL alias.
Comment #3
gregglesThe fix for 5.x-2 was slightly different given the new style of that version, but I do now see the problem and appreciate your help and advice.
Comment #4
gregglesI committed this to the 5.x-1.x branch as well - thanks!
Comment #5
(not verified) commented