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
fd7102af
Commit
fd7102af
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
#791296 B-Prod: Fix Feeds data processor does update id 0.
parent
b21cd3e0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.txt
+1
-0
1 addition, 0 deletions
CHANGELOG.txt
plugins/FeedsDataProcessor.inc
+5
-3
5 additions, 3 deletions
plugins/FeedsDataProcessor.inc
with
6 additions
and
3 deletions
CHANGELOG.txt
+
1
−
0
View file @
fd7102af
...
...
@@ -3,6 +3,7 @@
Feeds 6.x 1.0 xxxxxxxxxxxxxxxxxxxx
----------------------------------
- #791296 B-Prod: Fix Feeds data processor does update id 0.
- #759904 lyricnz: Provide a Google Sitemap Parser.
- #774858 rjbrown99: Fix Node Processor updates node "created" time when
updating.
...
...
This diff is collapsed.
Click to expand it.
plugins/FeedsDataProcessor.inc
+
5
−
3
View file @
fd7102af
...
...
@@ -21,7 +21,9 @@ class FeedsDataProcessor extends FeedsProcessor {
$expiry_time
=
$this
->
expiryTime
();
while
(
$item
=
$batch
->
shiftItem
())
{
if
(
!
(
$id
=
$this
->
existingItemId
(
$item
,
$source
))
||
$this
->
config
[
'update_existing'
])
{
$id
=
$this
->
existingItemId
(
$item
,
$source
);
if
(
$id
===
FALSE
||
$this
->
config
[
'update_existing'
])
{
// Map item to a data record, feed_nid and timestamp are mandatory.
$data
=
array
();
$data
[
'feed_nid'
]
=
$source
->
feed_nid
;
...
...
@@ -34,7 +36,7 @@ class FeedsDataProcessor extends FeedsProcessor {
}
// Save data.
if
(
$id
)
{
if
(
$id
!==
FALSE
)
{
$data
[
'id'
]
=
$id
;
$this
->
handler
()
->
update
(
$data
,
'id'
);
$updated
++
;
...
...
@@ -242,7 +244,7 @@ class FeedsDataProcessor extends FeedsProcessor {
return
$records
[
0
][
'id'
];
}
}
return
0
;
return
FALSE
;
}
/**
...
...
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