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

eZContentObjectTreeNode::subTreeByNodeID with Offset but no Limit param

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.5.0alpha
    • 4.0.1, 4.1.0alpha1
    • Misc
    • None

    Description

      It seems that if Limit param is omitted when calling eZContentObjectTreeNode::subTreeByNodeID(), the Offset is ignored.
      example of code :

          $params = array( 'ClassFilterType' => 'include',
                           'ClassFilterArray' => array( $postClassID ),
                           'SortBy', array( array( 'published', false ) ),
                           'Offset', 20 );
          $postNodes = eZContentObjectTreeNode::subTreeByNodeID( $params, $planet->attribute( 'node_id' ) );

      The Offset param is not used in the SQL query.

      Attachments

        Activity

          People

            oms Ole Marius Smestad
            dpobel dpobel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: