Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rest_views
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
rest_views
Merge requests
!24
issue
#3499482
Undefined array key "rendered"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
issue
#3499482
Undefined array key "rendered"
issue/rest_views-3499482:3.0.x
into
3.0.x
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Jiong Ye
requested to merge
issue/rest_views-3499482:3.0.x
into
3.0.x
4 months ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
0
0
Merge request reports
Compare
3.0.x
3.0.x (base)
and
latest version
latest version
da640c37
1 commit,
4 months ago
1 file
+
5
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
modules/rest_views_search_api/src/Plugin/views/field/SearchApiEntityFieldExport.php
+
5
−
3
Options
@@ -47,9 +47,11 @@ class SearchApiEntityFieldExport extends SearchApiEntityField {
*/
// phpcs:ignore
public
function
render_item
(
$count
,
$item
)
{
$rendered
=
$item
[
'rendered'
];
if
(
isset
(
$rendered
[
'#type'
])
&&
$rendered
[
'#type'
]
===
'data'
)
{
return
$rendered
[
'#data'
];
if
(
!
empty
(
$item
[
'rendered'
]))
{
$rendered
=
$item
[
'rendered'
];
if
(
isset
(
$rendered
[
'#type'
])
&&
$rendered
[
'#type'
]
===
'data'
)
{
return
$rendered
[
'#data'
];
}
}
return
parent
::
render_item
(
$count
,
$item
);
}
Loading