diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-04-28 12:02:18 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-04-28 12:02:18 +0000 |
commit | f16b6b2901810787a61a3721f2aa4b8dbce20a7e (patch) | |
tree | 65f713f705b0d432b93e65342fafb29421fe811c /modules/taxonomy.module | |
parent | 3f4be0d6937ef60a4f45dfe7c5e1c03b6e4ad2ee (diff) | |
download | brdo-f16b6b2901810787a61a3721f2aa4b8dbce20a7e.tar.gz brdo-f16b6b2901810787a61a3721f2aa4b8dbce20a7e.tar.bz2 |
#60621, typo orm_set_error("taxonomy[tags][$vid", patch by chx
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r-- | modules/taxonomy.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 149f8bf84..c3f40006b 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)))); } } } |