From f16b6b2901810787a61a3721f2aa4b8dbce20a7e Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter Date: Fri, 28 Apr 2006 12:02:18 +0000 Subject: [PATCH] #60621, typo orm_set_error("taxonomy[tags][$vid", patch by chx --- modules/taxonomy.module | 4 +++- modules/taxonomy/taxonomy.module | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 149f8bf8403..c3f40006b48 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -723,7 +723,9 @@ function taxonomy_node_validate(&$node) { foreach ($terms['tags'] as $vid => $vid_value) { $vocabulary = taxonomy_get_vocabulary($vid); if (!$vocabulary->tags) { - form_set_error("taxonomy[tags][$vid", t('The %name vocabulary can not be modified in this way.', array('%name' => theme('placeholder', $vocabulary->name)))); + // see form_get_error $key = implode('][', $element['#parents']); + // on why this is the key + form_set_error("taxonomy][tags][$vid", t('The %name vocabulary can not be modified in this way.', array('%name' => theme('placeholder', $vocabulary->name)))); } } } diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 149f8bf8403..c3f40006b48 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -723,7 +723,9 @@ function taxonomy_node_validate(&$node) { foreach ($terms['tags'] as $vid => $vid_value) { $vocabulary = taxonomy_get_vocabulary($vid); if (!$vocabulary->tags) { - form_set_error("taxonomy[tags][$vid", t('The %name vocabulary can not be modified in this way.', array('%name' => theme('placeholder', $vocabulary->name)))); + // see form_get_error $key = implode('][', $element['#parents']); + // on why this is the key + form_set_error("taxonomy][tags][$vid", t('The %name vocabulary can not be modified in this way.', array('%name' => theme('placeholder', $vocabulary->name)))); } } }