- Patch #744258 by sun, jpmckinney, catch: admin/structure/taxonomy paths have to use machine_name(), not vid.

merge-requests/26/head
Dries Buytaert 2010-04-04 13:53:22 +00:00
parent 77c0c78dd9
commit f79a1a735e
1 changed files with 4 additions and 0 deletions

View File

@ -159,6 +159,9 @@ function taxonomy_schema() {
'indexes' => array(
'list' => array('weight', 'name'),
),
'unique keys' => array(
'machine_name' => array('machine_name'),
),
);
$schema['taxonomy_index'] = array(
@ -256,6 +259,7 @@ function taxonomy_update_7002() {
);
db_add_field('taxonomy_vocabulary', 'machine_name', $field);
db_add_unique_key('taxonomy_vocabulary', 'machine_name', array('machine_name'));
foreach (taxonomy_get_vocabularies() as $vid => $vocabulary) {
$machine_name = 'vocabulary_' . $vid;