Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.9.0alpha1, 4.4.0
-
None
-
Operating System: x86_64 x86_64 x86_64 GNU/Linux
PHP: 5.2.10 (cli) (built: Nov 13 2009 11:44:05)
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
DB: na
Browser: Firefox 3.6
Description
offset passed to ezoe browse as string not integer
public static function browse( $args ) { $nodeID = (int) isset( $args[0] ) ? $args[0] : 1; $offset = (int) isset( $args[1] ) ? $args[1] : 0; $limit = (int) isset( $args[2] ) ? $args[2] : 10;
consequence: 'next' link fails to appear on all but first page of browse results.
should be:
public static function browse( $args ) { $nodeID = isset( $args[0] ) ? (int) $args[0] : 1; $offset = isset( $args[1] ) ? (int) $args[1] : 0; $limit = isset( $args[2] ) ? (int) $args[2] : 10;
Steps to reproduce
create link, browse for object in subtree with more than 20 children