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
0b40f2a0
Commit
0b40f2a0
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
#760140 lyricnz: FeedsBatch->total not updated when addItem() is called.
parent
8c54da49
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
includes/FeedsBatch.inc
+5
-2
5 additions, 2 deletions
includes/FeedsBatch.inc
with
6 additions
and
2 deletions
CHANGELOG.txt
+
1
−
0
View file @
0b40f2a0
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
Feeds 6.x 1.0 xxxxxxxxxxxxxxxxxxxx
Feeds 6.x 1.0 xxxxxxxxxxxxxxxxxxxx
----------------------------------
----------------------------------
- #760140 lyricnz: FeedsBatch->total not updated when addItem($item) is called.
- #755544 Monkey Master: Keep batch processing when mapping fails.
- #755544 Monkey Master: Keep batch processing when mapping fails.
- alex_b: Reset import schedule after deleting items from feed.
- alex_b: Reset import schedule after deleting items from feed.
- #653412 rbrandon: Do not create items older than expiry time.
- #653412 rbrandon: Do not create items older than expiry time.
...
...
This diff is collapsed.
Click to expand it.
includes/FeedsBatch.inc
+
5
−
2
View file @
0b40f2a0
...
@@ -133,7 +133,9 @@ class FeedsImportBatch extends FeedsBatch {
...
@@ -133,7 +133,9 @@ class FeedsImportBatch extends FeedsBatch {
* removed from the internal array.
* removed from the internal array.
*/
*/
public
function
shiftItem
()
{
public
function
shiftItem
()
{
return
array_shift
(
$this
->
items
);
$item
=
array_shift
(
$this
->
items
);
$this
->
total
=
count
(
$this
->
items
);
return
$item
;
}
}
/**
/**
...
@@ -165,7 +167,7 @@ class FeedsImportBatch extends FeedsBatch {
...
@@ -165,7 +167,7 @@ class FeedsImportBatch extends FeedsBatch {
*/
*/
public
function
setItems
(
$items
)
{
public
function
setItems
(
$items
)
{
$this
->
items
=
$items
;
$this
->
items
=
$items
;
$this
->
total
=
count
(
$items
);
$this
->
total
=
count
(
$
this
->
items
);
}
}
/**
/**
...
@@ -173,5 +175,6 @@ class FeedsImportBatch extends FeedsBatch {
...
@@ -173,5 +175,6 @@ class FeedsImportBatch extends FeedsBatch {
*/
*/
public
function
addItem
(
$item
)
{
public
function
addItem
(
$item
)
{
$this
->
items
[]
=
$item
;
$this
->
items
[]
=
$item
;
$this
->
total
=
count
(
$this
->
items
);
}
}
}
}
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