/**
 * Make sure incoming vids are free tagging enabled.
 */
function taxonomy_node_validate(&$node) {
  if ($node->taxonomy) {
    $terms = $node->taxonomy;
    if ($terms['tags']) {
      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))));
        }
      }
    }
  }
}

I'm not sure, but it looks like a typo on line 725 of taxonomy.module:
form_set_error("taxonomy[tags][$vid", t('The %name vocabulary can not be modified in this way.', array('%name' => theme('placeholder', $vocabulary->name))));

CommentFileSizeAuthor
#3 tax_form_error.patch1017 byteschx

Comments

chx’s picture

Correct. It should be taxonomy][tags][$vid IMO

myriad’s picture

Uh, you mean what is there is correct or it should have the closing square bracket?
taxonomy[tags][$vid]

chx’s picture

Assigned: Unassigned » chx
Status: Active » Reviewed & tested by the community
StatusFileSize
new1017 bytes

commented in the patch, anyways you want to read form_get_error.

gerhard killesreiter’s picture

Status: Reviewed & tested by the community » Fixed

applied

Anonymous’s picture

Status: Fixed » Closed (fixed)