Skip to content

Commit

Permalink
Merge pull request #149 from Berdir/entity-reference-handler-target-b…
Browse files Browse the repository at this point in the history
…undles

Fix condition to get the target bundle key when there are target bundles
  • Loading branch information
jhedstrom authored Nov 22, 2017
2 parents f2f10cc + 5a471d0 commit f900a3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function expand($values) {

// Determine target bundle restrictions.
$target_bundle_key = NULL;
if (!$target_bundles = $this->getTargetBundles()) {
if ($target_bundles = $this->getTargetBundles()) {
$target_bundle_key = $entity_definition->getKey('bundle');
}

Expand Down

0 comments on commit f900a3a

Please sign in to comment.