Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently, the more link is displayed even if there are 0 items available.
Patch attached.
-K
Comment | File | Size | Author |
---|---|---|---|
#4 | aggregator_empty_block.patch.txt | 2.44 KB | Heine |
#2 | aggregator_more_link.patch | 2.52 KB | Zen |
aggregator_3.patch | 2.3 KB | Zen | |
Comments
Comment #1
beginner CreditAttribution: beginner commented+1 generally on the patch, but:
1) $read_more is not initialized and will create a Notice error when there is no more feeds to read.
2) cvs has this bug, too, and should be fixed first so that we are sure we won't forget to include the fix in the next version :)
3) diff from the root: http://drupal.org/patch
Comment #2
Zen CreditAttribution: Zen commentedThanks for the review. Updated.
This patch also updates the title of the anchor tag to display a more relevant message.
-K
Comment #3
Zen CreditAttribution: Zen commentedThis patch is against 4-7-4.
-K
Comment #4
Heine CreditAttribution: Heine commentedRolled a patch before I saw this issue, so you're not the only one considering this a minor bug.
Here's a patch against 5-dev.
$type will be either feed or category, so $read_more will be defined (as will $result). Text change is for another patch.
Code comment may be obvious.
Comment #5
bdragon CreditAttribution: bdragon commentedA side effect of having an empty block content is that such blocks will disappear from the layout.
This is a behavioral change, but one that I believe is more in line with the way the rest of Drupal works (i.e. if it isn't relevant, it isn't shown.)
All that being said, patch in #4 looks OK to me, works as advertised, and doesn't break anything. RTBC.
Comment #6
drummCOmmitted to HEAD.
Comment #7
(not verified) CreditAttribution: commentedComment #8
Zen CreditAttribution: Zen commentedComment #9
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedapparently, I already applied this some tme ago.
Comment #10
(not verified) CreditAttribution: commented