Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
entity_embed
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
entity_embed
Merge requests
!16
Issue
#3011228
: Missing `data-quickedit-entity-id` attribute prevents in-place editing of embedded entities
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Issue
#3011228
: Missing `data-quickedit-entity-id` attribute prevents in-place editing of embedded entities
issue/entity_embed-3011228:3011228-missing-data-quickedit-entity-id-attribute
into
8.x-1.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Issue #3011228: Missing `data-quickedit-entity-id` attribute prevents in-place editing of embedded entities
Hershey Korik
requested to merge
issue/entity_embed-3011228:3011228-missing-data-quickedit-entity-id-attribute
into
8.x-1.x
Oct 21, 2022
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Merge request reports
Compare
8.x-1.x
8.x-1.x (HEAD)
and
latest version
latest version
5a4017ce
1 commit,
Oct 21, 2022
1 file
+
7
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
entity_embed.module
+
7
−
0
View file @ fab789c6
Edit in single-file editor
Open in Web IDE
Show full file
@@ -64,6 +64,13 @@ function template_preprocess_entity_embed_container(array &$variables) {
if
(
isset
(
$variables
[
'attributes'
][
'data-entity-embed-display-settings'
])
&&
is_array
(
$variables
[
'attributes'
][
'data-entity-embed-display-settings'
]))
{
$variables
[
'attributes'
][
'data-entity-embed-display-settings'
]
=
Json
::
encode
(
$variables
[
'attributes'
][
'data-entity-embed-display-settings'
]);
}
// Add QuickEdit attributes.
if
(
!
empty
(
$variables
[
'element'
][
'#entity'
]))
{
$type
=
$variables
[
'element'
][
'#entity'
]
->
getEntityType
()
->
id
();
$id
=
$variables
[
'element'
][
'#entity'
]
->
id
();
$variables
[
'attributes'
][
'data-quickedit-entity-id'
]
=
"
$type
/
$id
"
;
}
}
/**
Loading