Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
viewsreference-3453888
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
viewsreference-3453888
Commits
995215ca
Commit
995215ca
authored
2 years ago
by
Christopher Lewis
Committed by
Sean Blommaert
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3264780
by mrshowerman, seanB: Wording optimization in select widget
parent
96dbfa3c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/Field/FieldWidget/ViewsReferenceSelectWidget.php
+1
-1
1 addition, 1 deletion
src/Plugin/Field/FieldWidget/ViewsReferenceSelectWidget.php
with
1 addition
and
1 deletion
src/Plugin/Field/FieldWidget/ViewsReferenceSelectWidget.php
+
1
−
1
View file @
995215ca
...
...
@@ -34,7 +34,7 @@ class ViewsReferenceSelectWidget extends OptionsSelectWidget {
$selected_views
=
array_diff
(
$selected_views
,
[
'0'
]);
$selected_views
=
$this
->
getViewNames
(
$selected_views
);
if
(
count
(
$selected_views
)
>=
1
)
{
$first_option
=
[
'_none'
=>
$this
->
t
(
'-
Non
e -'
)];
$first_option
=
[
'_none'
=>
$this
->
t
(
'-
Select a valu
e -'
)];
$select_element
[
'target_id'
][
'#options'
]
=
array_merge
(
$first_option
,
$selected_views
);
}
}
...
...
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