Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
menu_link_attributes
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
menu_link_attributes
Commits
1259a0fb
Commit
1259a0fb
authored
2 years ago
by
João Ventura
Committed by
Joao Ventura
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3312369
by recrit, jcnventura: Attributes do not save on the default translation
parent
024fc471
Branches
Branches containing commit
Tags
8.x-1.3-rc2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
menu_link_attributes.module
+2
-2
2 additions, 2 deletions
menu_link_attributes.module
with
2 additions
and
2 deletions
menu_link_attributes.module
+
2
−
2
View file @
1259a0fb
...
...
@@ -177,7 +177,7 @@ function menu_link_attributes_menu_link_content_form_entity_builder($entity_type
}
}
$menu_link_
attribute
s
=
array_filter
(
$menu_link_attributes
);
$menu_link_
option
s
=
array_filter
(
$menu_link_attributes
);
}
else
{
$original
=
\Drupal
::
entityTypeManager
()
...
...
@@ -186,7 +186,7 @@ function menu_link_attributes_menu_link_content_form_entity_builder($entity_type
$menu_link_options
=
$original
->
get
(
'link'
)
->
first
()
->
options
;
}
$menu_link
->
link
->
first
()
->
options
=
$menu_link_
attribute
s
;
$menu_link
->
link
->
first
()
->
options
=
$menu_link_
option
s
;
// Set for other languages.
if
(
$menu_link
->
isDefaultTranslation
()
||
!
$menu_link
->
isDefaultTranslationAffectedOnly
())
{
...
...
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
register
or
sign in
to comment