Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
viewsreference-3454095
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-3454095
Commits
026df753
Commit
026df753
authored
6 years ago
by
Kent Shelley
Browse files
Options
Downloads
Patches
Plain Diff
fix regressions
parent
06bb9517
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/ViewsReferenceTrait.php
+2
-2
2 additions, 2 deletions
src/Plugin/Field/FieldWidget/ViewsReferenceTrait.php
with
2 additions
and
2 deletions
src/Plugin/Field/FieldWidget/ViewsReferenceTrait.php
+
2
−
2
View file @
026df753
...
...
@@ -151,7 +151,7 @@ trait ViewsReferenceTrait {
$display_id_field_path
=
array_slice
(
$trigger
[
'#array_parents'
],
0
,
-
1
);
array_push
(
$display_id_field_path
,
'display_id'
);
$display_id_field
=
NestedArray
::
getValue
(
$form
,
$display_id_field_path
);
$display_id_field
[
'#options'
]
=
$this
->
getViewDisplays
(
$view_id
);
$display_id_field
[
'#options'
]
=
$this
->
getViewDisplay
Id
s
(
$view_id
);
// Construct the html.
$response
=
new
AjaxResponse
();
...
...
@@ -199,7 +199,7 @@ trait ViewsReferenceTrait {
/**
* Helper to get display ids for a particular View.
*/
protected
function
getViewDisplayIds
(
$
entity
_id
)
{
protected
function
getViewDisplayIds
(
$
view
_id
)
{
$options
=
[];
$view_plugins
=
array_diff
(
$this
->
getFieldSetting
(
'plugin_types'
),
[
"0"
]);
...
...
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