Closed (fixed)
Project:
Node Auto Term [NAT]
Version:
5.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Nov 2008 at 17:36 UTC
Updated:
1 Mar 2009 at 22:20 UTC
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
Comment #1
Zen commentedFixed in D6 and D5.
Thanks,
-K