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

pwolanin’s picture

Status: Active » Closed (duplicate)
xano’s picture

I'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.

pwolanin’s picture

@Xano - no need to apologize. Meaningful bug reports are appreciated, and it's good that you searched first.