Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Issue forks
linkit-2886455
Commits
a6e9743e
Commit
a6e9743e
authored
Feb 24, 2021
by
Your Name
Browse files
Avoid overwriting the $entity object.
parent
86fa9064
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Plugin/Linkit/Matcher/EntityMatcher.php
View file @
a6e9743e
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment