Closed (duplicate)
Project:
Drupal core
Version:
6.0-rc1
Component:
taxonomy.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2008 at 16:09 UTC
Updated:
6 Jan 2008 at 20:38 UTC
I was working on a module when I was wondering whether Drupal would support multiple terms with the same name. To test this I created a new term using a name I had already used for another term. This caused the following error: user warning: Duplicate entry '4-Test term 1' for key 2 query: INSERT INTO term_data (vid, name, description, weight) VALUES (4, 'Test term 1', 'Test term 1 versie 2 desc', 0) in /Users/bart/htdocs/vocabindex/6/includes/common.inc on line 3295.
This happened on a fresh Drupal 6.0 RC1 install.
Suggestion: Don't allow duplicate term names and simply set a form error.
Comments
Comment #1
pwolanin commentedhttp://drupal.org/node/164532#comment-680764
Comment #2
xanoI'm sorry for making the duplicate. After taking a look at the other issue I realized I couldn't find that issue via the search form because that one isn't about Taxonomy while I thought this issue was.
Comment #3
pwolanin commented@Xano - no need to apologize. Meaningful bug reports are appreciated, and it's good that you searched first.