Commit a6e9743e authored by Your Name's avatar Your Name
Browse files

Avoid overwriting the $entity object.

parent 86fa9064
......@@ -451,8 +451,11 @@ class EntityMatcher extends ConfigurableMatcherBase {
}
}
}
// Default case.
else {
$entity = $this->entityRepository->getTranslationFromContext($entity);
}
$entity = $this->entityRepository->getTranslationFromContext($entity);
$suggestion = $this->createSuggestion($entity);
$suggestions->addSuggestion($suggestion);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment