Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-17402

ezoe offset passed to ezoe browse as string not integer

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.4.0, 4.5.0
    • 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

      Attachments

        Activity

          People

            andre1 andre1
            630accb7-ebc7-47a4-a912-60911f641030@accounts.ibexa.co David Broadfoot
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: