Profile limit does not work (uses block limit value)

rares - March 28, 2009 - 00:01
Project:Favorite Nodes
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

This is very straightforward, so I marked this RTB.
In favorite_nodes_user()
$favorites = favorite_nodes_get($uid, $type->type, variable_get(FAVORITE_NODES_BLOCK_LIMIT, 5));
needs to be
$favorites = favorite_nodes_get($uid, $type->type, variable_get(FAVORITE_NODES_PAGE_LIMIT, 5));

Otherwise, it will display favorites on the user page as it is configured in the block.

#1

rares - March 28, 2009 - 00:39
Title:Select number of entries on page not working» Profile limit does not work (uses block limit value)

Here is a patch and a better name

AttachmentSize
favorite_nodes.block_.patch 902 bytes

#2

kbahey - March 28, 2009 - 16:20
Status:reviewed & tested by the community» fixed

#3

System Message - April 11, 2009 - 16:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.