Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
choices
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
choices
Merge requests
!27
Issue
#3422390
: Choices field widget not working in node edit form when applied to an Entity reference field in a Paragraph
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3422390
: Choices field widget not working in node edit form when applied to an Entity reference field in a Paragraph
issue/choices-3422390:3422390-choices-field-widget
into
2.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Jose Francisco D'Silva
requested to merge
issue/choices-3422390:3422390-choices-field-widget
into
2.x
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#3422390
0
0
Merge request reports
Compare
2.x
version 1
ca204587
1 year ago
2.x (HEAD)
and
latest version
latest version
87494ab5
1 commit,
1 year ago
version 1
ca204587
1 commit,
1 year ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
js/choices_widget.js
+
1
−
1
Options
@@ -15,7 +15,7 @@
if
(
settings
.
choices
.
widget
.
fields
)
{
let
choicesWidgetFields
=
settings
.
choices
.
widget
.
fields
;
Object
.
entries
(
choicesWidgetFields
).
forEach
(([
fieldName
,
value
])
=>
{
let
selects
=
context
.
querySelectorAll
(
'
select[name="
'
+
fieldName
+
'
"],select[name="
'
+
fieldName
+
'
[]"]
'
);
let
selects
=
context
.
querySelectorAll
(
'
select[name="
'
+
fieldName
+
'
"],select[name="
'
+
fieldName
+
'
[]"]
,select[name*="[
'
+
fieldName
+
'
]"
'
);
if
(
selects
.
length
>
0
)
{
let
configuration_options
=
{};
// If choices widget configuration_options is set use them:
Loading