Mercurial > hg > drupalISMI
diff relation_processor/nodes.inc @ 20:bdf91a4a40ff
fix problem with newer relation feed modules.
author | casties |
---|---|
date | Fri, 18 Sep 2015 18:25:10 +0200 |
parents | 1c73c660c2f2 |
children |
line wrap: on
line diff
--- a/relation_processor/nodes.inc Wed Sep 09 17:32:42 2015 +0200 +++ b/relation_processor/nodes.inc Fri Sep 18 18:25:10 2015 +0200 @@ -113,18 +113,17 @@ * */ function relation_feeds_set_relation_type($source, $entity, $target, $terms, $mapping = array()) { + if (empty($terms)) { return; } - // don't Handle non-multiple values. + // assume array has only one term if (is_array($terms)) { - return; + $terms = $terms[0]; } - dpm("CHECK: TYPE"); - dpm($terms); $types=relation_get_types(array($terms));