summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-01 01:37:13 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-01 01:37:13 +0000
commit823c0a0a55604429874702d64a85363099224aa1 (patch)
treeb841172c3b29203bf19a039f4493e38084b5a807 /modules/taxonomy/taxonomy.install
parent6d2573e2013655c57ff995e52cd7f267fa4a3a7f (diff)
downloadbrdo-823c0a0a55604429874702d64a85363099224aa1.tar.gz
brdo-823c0a0a55604429874702d64a85363099224aa1.tar.bz2
#881530 by yhahn: Fix exportability of vocabularies by using machine names in taxonomy field's 'allowed values' setting.
Diffstat (limited to 'modules/taxonomy/taxonomy.install')
-rw-r--r--modules/taxonomy/taxonomy.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/taxonomy/taxonomy.install b/modules/taxonomy/taxonomy.install
index 8bd3a31db..bd8110961 100644
--- a/modules/taxonomy/taxonomy.install
+++ b/modules/taxonomy/taxonomy.install
@@ -408,7 +408,7 @@ function taxonomy_update_7004() {
'required' => $vocabulary->required ? TRUE : FALSE,
'allowed_values' => array(
array(
- 'vid' => $vocabulary->vid,
+ 'vocabulary' => $vocabulary->machine_name,
'parent' => 0,
),
),
@@ -466,7 +466,7 @@ function taxonomy_update_7004() {
$allowed_values = array();
foreach (_update_7002_taxonomy_get_vocabularies() as $vocabulary) {
$allowed_values[] = array(
- 'vid' => $vocabulary->vid,
+ 'vocabulary' => $vocabulary->machine_name,
'parent' => 0,
);
}