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
6156b5d5
"ist-git@git.uwaterloo.ca:drupal-org/gmap.git" did not exist on "7553f3b29c068b957389ee80d032921efcb42154"
Commit
6156b5d5
authored
14 years ago
by
Tobby Hagler
Browse files
Options
Downloads
Patches
Plain Diff
Issue #1011958 by David Goode: Allow hashes to be updated when content in a feed is updated.
parent
03e03c2e
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
plugins/FeedsProcessor.inc
+4
-5
4 additions, 5 deletions
plugins/FeedsProcessor.inc
with
4 additions
and
5 deletions
plugins/FeedsProcessor.inc
+
4
−
5
View file @
6156b5d5
...
...
@@ -119,11 +119,10 @@ abstract class FeedsProcessor extends FeedsPlugin {
}
else
{
$entity
=
$this
->
entityLoad
(
$source
,
$entity_id
);
// If an existing item info can't be loaded, create one.
if
(
!
$this
->
loadItemInfo
(
$entity
))
{
$this
->
newItemInfo
(
$entity
,
$source
->
feed_nid
,
$hash
);
$entity
->
feeds_item
->
entity_id
=
$entity_id
;
}
// The feeds_item table is always updated with the info for the most recently processed entity.
// The only carryover is the entity_id.
$this
->
newItemInfo
(
$entity
,
$source
->
feed_nid
,
$hash
);
$entity
->
feeds_item
->
entity_id
=
$entity_id
;
}
$this
->
map
(
$source
,
$parser_result
,
$entity
);
$this
->
entityValidate
(
$entity
);
...
...
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