without this we have misunderstanding with pathauto (or/and token?) module.
Pathauto doesn't get any info about vocabulary on term update. As result - url alias for term will be updated with breaking all vocabulary related patterns.

Just add the 'vid' to array before save the term:

<?php
     $edit['tid'] = $term->tid;
+    $edit['vid'] = $term->vid;
     taxonomy_save_term($edit);
?>

Comments

Zen’s picture

Assigned: Unassigned » Zen
Status: Active » Fixed

Fixed in D6 and D5.

Thanks,
-K

Status: Fixed » Closed (fixed)

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