Item count for block not working

TfR75 - December 6, 2007 - 12:53
Project:Similar By Terms
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I have a problem using "Item count" for the block. By default it is set to 5 - and it stays that way not matter which number I set it to. After saving, the block configuration shows the Item count set to, for example, 3, but in the block there are still 5 items displayed...

#1

webmasterkai - December 31, 2007 - 22:22
Status:active» patch (code needs review)

5 is hardcoded. http://drupal.org/node/151084
Apply patch to get it working.

AttachmentSize
similarterms.patch1.38 KB

#2

TfR75 - January 7, 2008 - 14:16

I will have a look at this and report back. Thanks!

#3

TfR75 - January 7, 2008 - 14:35
Status:patch (code needs review)» patch (code needs work)

Unfortunately, the patched file produces the same behaviour as the original...

#4

miiimooo - January 30, 2008 - 18:01

This is a modified version that mainly offers new (additional non-conflicting) functionality to specify content types the similar nodes should be limited to but also fixes the count bug.

Hope this helps.

AttachmentSize
similarterms.module.zip1.93 KB

#5

TfR75 - January 31, 2008 - 10:12

It works nice and smooth. Will this become part of the "official" similarterms?

#6

Eugef - February 10, 2008 - 12:49

Thaks for cool module and good patch!

#7

sun - February 10, 2008 - 23:51
Status:patch (code needs work)» patch (reviewed & tested by the community)

New patch, only contains required changes. Thus, setting to RTBC.

AttachmentSize
similarterms-DRUPAL-5.count_.patch1.03 KB

#8

cridenour - March 7, 2008 - 14:54

I posted nearly the same code as sun (different variable name :-P ) in the other thread. Does anyone have access to CVS to update this module?

#9

rmiddle - June 19, 2008 - 21:15
Status:patch (reviewed & tested by the community)» fixed

I am going to make this as a dupe of http://drupal.org/node/151084 even though this ticket predates that ticket. Again this issue is fine in 6.x-1.x and if fixed in cvs and 5.x-1.2 when released.

Thanks
Robert

#10

Anonymous (not verified) - July 3, 2008 - 22:14
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.