Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
editablefields
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
editablefields
Merge requests
!29
#3467115
- added wrpaper so even empty fields can be replaced with ajax command
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
#3467115
- added wrpaper so even empty fields can be replaced with ajax command
issue/editablefields-3467115:3467115-wrapper-for-ajax
into
1.0.x
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Oleksandr Akerman
requested to merge
issue/editablefields-3467115:3467115-wrapper-for-ajax
into
1.0.x
2 months ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
Closes
#3467115
0
0
Merge request reports
Compare
1.0.x
1.0.x (base)
and
latest version
latest version
4b572daa
1 commit,
2 months ago
3 files
+
21
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
src/Form/EditableFieldsForm.php
+
3
−
2
Options
@@ -356,9 +356,10 @@ class EditableFieldsForm extends FormBase implements BaseFormIdInterface {
->
load
(
$params
[
'entity_id'
]);
if
(
$entity
)
{
$formatter
=
$entity
->
get
(
$params
[
'field_name'
])
$wrapper
=
$this
->
editablefieldsHelper
->
prepareWrapperElement
();
$wrapper
[
'content'
]
=
$entity
->
get
(
$params
[
'field_name'
])
->
view
(
$params
[
'display_mode'
]);
$command
=
new
ReplaceCommand
(
'.'
.
$params
[
'selector'
]
.
' .
field'
,
$formatt
er
);
$command
=
new
ReplaceCommand
(
'.'
.
$params
[
'selector'
]
.
' .
editablefields-popup-inner'
,
$wrapp
er
);
$response
->
addCommand
(
$command
);
}
}
Loading