Skip to content

BUG: getDefaultLimitPerPageValue returns value that is not available #27089

Closed
@lbajsarowicz

Description

@lbajsarowicz

Preconditions (*)

image

As a Store Administrator, you are able to provide the Products per Page on Grid Allowed Values and Products per Page on Grid Default Value. There is no verification, so you can accidentally set the default value to be one of the unavailable options.

Steps to reproduce (*)

  1. Change catalog/frontend/grid_per_page_values to 1,2,5 using CLI
  2. Change catalog/frontend/grid_per_page to 12
  3. Get the value of catalog/frontend/grid_per_page_values in your Template

Expected result (*)

  1. Configuration should return only allowed values, so we expect to return one of the available values (1,2 or 5)

Actual result (*)

  1. Configuration returns value that is not allowed - value of 12

Metadata

Metadata

Assignees

Labels

Component: CatalogFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions