Mercurial > hg > drupalISMI
changeset 20:bdf91a4a40ff
fix problem with newer relation feed modules.
author | casties |
---|---|
date | Fri, 18 Sep 2015 18:25:10 +0200 |
parents | ca1e02a2a9c4 |
children | 7b6b064afe5d |
files | relation_processor/nodes.inc |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
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));