Currently, the more link is displayed even if there are 0 items available.

Patch attached.

-K

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

beginner’s picture

Version: 4.7.2 » x.y.z
Status: Needs review » Needs work

+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

Zen’s picture

Status: Needs work » Needs review
FileSize
2.52 KB

Thanks for the review. Updated.

This patch also updates the title of the anchor tag to display a more relevant message.

-K

Zen’s picture

Version: x.y.z » 4.7.4

This patch is against 4-7-4.

-K

Heine’s picture

Version: 4.7.4 » 5.x-dev
FileSize
2.44 KB

Rolled 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.

bdragon’s picture

Status: Needs review » Reviewed & tested by the community

A 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.

drumm’s picture

Status: Reviewed & tested by the community » Fixed

COmmitted to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)
Zen’s picture

Version: 5.x-dev » 4.7.x-dev
Status: Closed (fixed) » Patch (to be ported)
killes@www.drop.org’s picture

Status: Patch (to be ported) » Fixed

apparently, I already applied this some tme ago.

Anonymous’s picture

Status: Fixed » Closed (fixed)