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

Range facets cannot start from 0

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 4.7.0alpha1, 4.6.0
    • None

    Description

      Specifying a range facet with a start point of 0 returns no results.

      Steps to reproduce

      There is a check (1147) in ezfezpsolrquerybuilder.php to ensure the start point is not empty, this rules out a value of 0:

      && !empty( $facetDefinition['range']['start'] )

      This should be:

      && isset( $facetDefinition['range']['start'] )

      The same probably applies for end as well, although I don't see a case where you'd want end to be 0.

      Attachments

        Activity

          People

            unknown unknown
            43f49ffc-cd9b-4f81-a89b-a0d2f59e446c@accounts.ibexa.co Rob Clews
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: