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.

Comments

greggles’s picture

Status: Needs review » Fixed

Looks great to me. Fixed. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nancydru’s picture

Status: Closed (fixed) » Needs review

There was a piece missing: http://drupal.org/node/238213. Please apply the patch and test. Thanks.

greggles’s picture

Status: Needs review » Closed (fixed)

This issue has nothing to do with your new one.