The _find_term function needs to only search the location_taxonomize vocabulary and not all vocabularies. I ran across this with having two vocabularies with a term of United States. It was finding the first one and it was not the one in the Location Taxonomize associated vocabulary. Thus, a slight alteration of line 229 in location_taxonomize.module will fix the issue.

Old:

  $terms = taxonomy_get_term_by_name($name);

Fixed:

  $terms = taxonomy_get_term_by_name($name, 'location_taxonomize');
CommentFileSizeAuthor
#1 limitfindterm-1580296-1.patch581 bytesnoslokire

Comments

noslokire’s picture

Status: Active » Needs review
StatusFileSize
new581 bytes

Attaching a patch, also fixes #1496496: Notice: "Trying to get property of non-object" for me.

Thanks!

goron’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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