Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
00f28a27
Commit
00f28a27
authored
9 years ago
by
angel.h
Committed by
Chris Leppanen
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue #2500185 by angel.h, MegaChriz: Error when having an entity without base table
parent
f82a9668
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
views/feeds.views.inc
+12
-10
12 additions, 10 deletions
views/feeds.views.inc
with
12 additions
and
10 deletions
views/feeds.views.inc
+
12
−
10
View file @
00f28a27
...
@@ -167,17 +167,19 @@ function feeds_views_data() {
...
@@ -167,17 +167,19 @@ function feeds_views_data() {
// Add a relationship for each entity type relating the entity's base table
// Add a relationship for each entity type relating the entity's base table
// to the feeds_item table whre feeds_item.entity_type = 'entity_type'.
// to the feeds_item table whre feeds_item.entity_type = 'entity_type'.
foreach
(
entity_get_info
()
as
$entity_type
=>
$info
)
{
foreach
(
entity_get_info
()
as
$entity_type
=>
$info
)
{
$data
[
'feeds_item'
][
'table'
][
'join'
][
$info
[
'base table'
]]
=
array
(
if
(
!
empty
(
$info
[
'base table'
]))
{
'left_field'
=>
$info
[
'entity keys'
][
'id'
],
$data
[
'feeds_item'
][
'table'
][
'join'
][
$info
[
'base table'
]]
=
array
(
'field'
=>
'entity_id'
,
'left_field'
=>
$info
[
'entity keys'
][
'id'
],
'type'
=>
'LEFT'
,
'field'
=>
'entity_id'
,
'extra'
=>
array
(
'type'
=>
'LEFT'
,
array
(
'extra'
=>
array
(
'field'
=>
'entity_type'
,
array
(
'value'
=>
$entity_type
,
'field'
=>
'entity_type'
,
'value'
=>
$entity_type
,
),
),
),
)
,
)
;
);
}
}
}
/**
/**
...
...
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