Commit f1af9831 authored by NGUYEN Bao's avatar NGUYEN Bao Committed by renatog
Browse files

Issue #2852097 by lazzyvn, abelaguado, RenatoG: Bug Token and entity reference

parent 76860353
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ function field_collection_tokens($type, $tokens, array $data = array(), array $o
        }
      }
      foreach ($entity_types as $entity_type => $entity_info) {
        if ($entity_tokens = token_find_with_prefix($tokens, $entity_type)) {
        if ($collection instanceof FieldCollectionItemEntity && $entity_tokens = token_find_with_prefix($tokens, $entity_type)) {
          $host = $collection->hostEntity();
          $replacements += token_generate($entity_type, $entity_tokens, array($entity_type => $host), $options);
        }