Due to the fact that multiple vocabularies can have the same term name, install_taxonomy_get_tid() really needs to limit the query to vid.

Comments

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new987 bytes

PLEASE IGNORE.
I mixed up two issues, will post this to a separate issue.

damienmckenna’s picture

Status: Needs review » Active

Please ignore the previous attachment, it was for the wrong issue.

damienmckenna’s picture

Status: Active » Needs review

The attached patch limits install_taxonomy_get_tid() to the vid if passed in through the optional argument.

damienmckenna’s picture

StatusFileSize
new956 bytes

Patch actually attached this time.

James Andres’s picture

Seems sensible to me, committing with a small change (keeping vid numeric, as done in taxonomy.module with optional arguments).

James Andres’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.