Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
language_neutral_aliases
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
language_neutral_aliases
Commits
0dcb28de
Commit
0dcb28de
authored
9 months ago
by
Keshav Patel
Committed by
Keshav Patel
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3505292
: Duplicate alias generation during entity translation
parent
eebb2236
No related branches found
No related tags found
1 merge request
!3
Issue #3505292: Duplicate alias generation during entity translation
Pipeline
#457715
passed with warnings
7 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
language_neutral_aliases.module
+6
-0
6 additions, 0 deletions
language_neutral_aliases.module
with
6 additions
and
0 deletions
language_neutral_aliases.module
+
6
−
0
View file @
0dcb28de
...
@@ -34,4 +34,10 @@ function language_neutral_aliases_module_implements_alter(&$implementations, $ho
...
@@ -34,4 +34,10 @@ function language_neutral_aliases_module_implements_alter(&$implementations, $ho
unset
(
$implementations
[
'language_neutral_aliases'
]);
unset
(
$implementations
[
'language_neutral_aliases'
]);
$implementations
[
'language_neutral_aliases'
]
=
$group
;
$implementations
[
'language_neutral_aliases'
]
=
$group
;
}
}
// The core path_entity_translation_create() hook attempts to create a new alias for each translation, resulting in duplicates or conflicts.
// To prevent this and ensure a single language-neutral alias per entity, we disable this hook.
if
(
$hook
===
'entity_translation_create'
&&
isset
(
$implementations
[
'path'
]))
{
unset
(
$implementations
[
'path'
]);
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
sign in
to comment