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

eZFlow: Limit parameter for eZFlowLatestObjects fetch class is sometimes ignored.

    Details

      Description

      When using an eZFlow block with FetchClass=eZFlowLatestObjects and a given "Limit" parameter,
      decreasing the Limit value will still display the old number of items.

      Steps to reproduce:

      Using the following in block.ini:

      [LatestObjects]
      Name=LatestObjects
      ManualAddingOfItems=disabled
      FetchClass=eZFlowLatestObjects
      FetchFixedParameters[Class]=article
      FetchFixedParameters[Source]=2
      FetchParameters[Limit]=
      FetchParametersIsRequired[]
      FetchParametersIsRequired[Limit]=false
      ViewList[]=line
      ViewName[line]=line
      

      1. Add the "LatestObjects" block to the Frontpage
      2. Set "Limit" parameter to "3"
      3. Publish, and verify that the Homepage displays 3 items.
      4. Edit the Frontpage, decreasing "Limit" value to "2".

      A possible workaround is to manually remove any items from the list when decreasing the Limit value.

      Further Notes:

      Adding new content that gets fetched by the eZFlowLatestObjects class, will also cause the "Limit" parameter to be ignored.

        Activity

        Hide
        Simon Boyer added a comment -

        Moreover, when a new item is created, it will be added to the queue, regardless limit parameter.

        Show
        Simon Boyer added a comment - Moreover, when a new item is created, it will be added to the queue, regardless limit parameter.
        Show
        Paul Borgermans (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezflow/commit/944b7450944a0c5069126b439397dce7a66a3483 stable-5.0: https://github.com/ezsystems/ezflow/commit/5e33b4a29e05fefe5b080a9d53181e235d1d1c35 stable-2.5: https://github.com/ezsystems/ezflow/commit/8446bb2fe058826fe4716102817a280adbfe6863 stable-2.4: https://github.com/ezsystems/ezflow/commit/2dd6d866beb0faa1a4eae83201ec05686721dac5 stable-2.3: https://github.com/ezsystems/ezflow/commit/b49f4d4dc9dda02be8f63b266f2fcef0231d839d
        Hide
        Paul Borgermans (Inactive) added a comment -

        Backported to 2.3, 2.4, 2.5, 5.0

        Show
        Paul Borgermans (Inactive) added a comment - Backported to 2.3, 2.4, 2.5, 5.0

          People

          • Assignee:
            Unassigned
            Reporter:
            Joao Inacio (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Time Spent - 7 hours Remaining Estimate - 2 hours
              2h
              Logged:
              Time Spent - 7 hours Remaining Estimate - 2 hours
              7h