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
18527892
Commit
18527892
authored
15 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
#718474 jerdavis: In FeedsNodeProcessor, check for duplicate items within same importer id.
parent
b390b7b1
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
+7
-0
7 additions, 0 deletions
CHANGELOG.txt
plugins/FeedsNodeProcessor.inc
+2
-2
2 additions, 2 deletions
plugins/FeedsNodeProcessor.inc
with
9 additions
and
2 deletions
CHANGELOG.txt
+
7
−
0
View file @
18527892
// $Id$
// $Id$
Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx
----------------------------------
- #718474 jerdavis: In FeedsNodeProcessor, check for duplicate items within
same importer id.
Feeds 6.x 1.0 Alpha 12, 2010-02-23
Feeds 6.x 1.0 Alpha 12, 2010-02-23
----------------------------------
----------------------------------
...
...
This diff is collapsed.
Click to expand it.
plugins/FeedsNodeProcessor.inc
+
2
−
2
View file @
18527892
...
@@ -274,10 +274,10 @@ class FeedsNodeProcessor extends FeedsProcessor {
...
@@ -274,10 +274,10 @@ class FeedsNodeProcessor extends FeedsProcessor {
foreach
(
$this
->
uniqueTargets
(
$source_item
)
as
$target
=>
$value
)
{
foreach
(
$this
->
uniqueTargets
(
$source_item
)
as
$target
=>
$value
)
{
switch
(
$target
)
{
switch
(
$target
)
{
case
'url'
:
case
'url'
:
$nid
=
db_result
(
db_query
(
'SELECT nid FROM {feeds_node_item} WHERE feed_nid = %d AND url = "%s"'
,
$source
->
feed_nid
,
$value
));
$nid
=
db_result
(
db_query
(
'SELECT nid FROM {feeds_node_item} WHERE feed_nid = %d AND
id = "%s" AND
url = "%s"'
,
$source
->
feed_nid
,
$source
->
id
,
$value
));
break
;
break
;
case
'guid'
:
case
'guid'
:
$nid
=
db_result
(
db_query
(
'SELECT nid FROM {feeds_node_item} WHERE feed_nid = %d AND guid = "%s"'
,
$source
->
feed_nid
,
$value
));
$nid
=
db_result
(
db_query
(
'SELECT nid FROM {feeds_node_item} WHERE feed_nid = %d AND
id = "%s" AND
guid = "%s"'
,
$source
->
feed_nid
,
$source
->
id
,
$value
));
break
;
break
;
}
}
if
(
$nid
)
{
if
(
$nid
)
{
...
...
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