Skip to content

Commit

Permalink
Issue #91: Set the array element with the vocabulary's machine name, …
Browse files Browse the repository at this point in the history
…rather than the vocabulary object. (#92) by @oadaeh
  • Loading branch information
oadaeh authored Jun 13, 2021
1 parent 334ca61 commit abeabf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mappers/taxonomy.inc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function taxonomy_feeds_set_target(FeedsSource $source, $entity, $target, array
foreach ($info['settings']['allowed_values'] as $tree) {
if ($vocabulary = taxonomy_vocabulary_load($tree['vocabulary'])) {
$cache['allowed_vocabularies'][$target][$vocabulary->machine_name] = $vocabulary->machine_name;
$cache['vocabulary_targets'][$vocabulary][] = $target;
$cache['vocabulary_targets'][$vocabulary->machine_name][] = $target;
}
}
}
Expand Down

0 comments on commit abeabf4

Please sign in to comment.