From d8b9d19e96072120b11dfeace575edb1ee70d64f Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Fri, 3 Sep 2010 21:22:44 +0000
Subject: [PATCH] #873198 BWPanda, morningtime: Import multiple values to tag
 vocabulary.

---
 CHANGELOG.txt        | 1 +
 mappers/taxonomy.inc | 1 +
 2 files changed, 2 insertions(+)

diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 72be12ed..aaef7f30 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -3,6 +3,7 @@
 Feeds 6.x 1.0 XXXXXXXXXXXXXXXXXX
 --------------------------------
 
+- #873198 BWPanda, morningtime: Import multiple values to tag vocabulary.
 - #872772 andrewlevine: Fix buildNode() (and node_load()) called unnecessarily.
 - #873240 thsutton: Use isset() to avoid notices.
 - #878528 Sutharsan: Don't show file in UI if file does not exist.
diff --git a/mappers/taxonomy.inc b/mappers/taxonomy.inc
index d77b321c..b0140ec5 100644
--- a/mappers/taxonomy.inc
+++ b/mappers/taxonomy.inc
@@ -58,6 +58,7 @@ function taxonomy_feeds_set_target(&$node, $key, $terms) {
 
   if ($vocab->tags) {
     // Simply add a comma separated list to the node for a "tags" vocabulary.
+    $terms = array_merge($terms, drupal_explode_tags($node->taxonomy['tags'][$vocab->vid]));
     $node->taxonomy['tags'][$vocab->vid] = implode(',', $terms);
   }
   else {
-- 
GitLab