Problem:
_taxonomy_pathauto_alias function does not create aliases with a source of "forum/" . $category->tid
when executing a Bulk Update of taxonomy paths in path auto.
To Duplicate:
Install Forum module
Set an Alias for Forum paths under taxonomy in Pathauto Admin settings.
Create some forums.
Note that the aliases were created and function as expected.
Next, delete all taxonomy and forum src aliases in the url_alias table
And run a bulk update of taxonomy aliases in Pathauto Admin
Reason:
Line 76 in _taxonomy_pathauto_alias (pathauto_taxonomy.inc):
if($forum_vid === $category->vid)
returns false on Bulk Update even when the values are "equal".
It appears that $category->vid is a string while $foum_vid is an integer,
resulting in the === returning false.
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| pathauto_2.x-dev-bulk-update-forum-alias-fix.patch | 582 bytes | setvik |
Comments
Comment #1
gregglesLooks great to me. Fixed. Thanks!
Comment #2
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
nancydruThere was a piece missing: http://drupal.org/node/238213. Please apply the patch and test. Thanks.
Comment #4
gregglesThis issue has nothing to do with your new one.