Download & Extend

empty content taxonomy cells imported as taxonomy terms with empty names

Project:Feeds
Version:7.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

content_taxonomy_feeds_set_target() had a bug whereby empty cells were importing as taxonomy tids with empty names. to fix, change FROM

// Return if there are no or empty terms.
if (!is_array($terms) || empty($terms)) {
return;
}

TO

// Return if there are no or empty terms.
if (!is_array($terms) || (count($terms) == 1 && empty($terms[0]))) {
return;
}

this relates to issues like:

http://drupal.org/node/1047894
http://drupal.org/node/1107522

Comments

#1

Where is this line of code you are referring to? In which file?

#2

right there in content_taxonomy_feeds_set_target(), as i said

#3

I think he is asking in which file...

#4

Version:6.x-1.0-beta12» 7.x-2.x-dev

The problem persists on D7 also.

#5

nobody click here