Skip to content

Usage of non-numeric value for "Number of Products to Display" setting in "Catalog Products List" widget leads to an exception #23422

Open
@Deathrezen

Description

@Deathrezen

Preconditions

  1. Magento 2.3.1 EE with sample data installed
  2. PHP 7.2

Steps to reproduce

  1. Open any CMS page
  2. In "Content" field add a Catalog Products List widget with settings:
    Title = title
    Number of Products to Display = azaza (or any other non-numeric value)
    Display Page Control = No
    Other settings have default values
  3. Save the widget
  4. Save the CMS page
  5. Go to the CMS page

Expected result

Step 3:
Validation error appears as widget is saved due to incorrect input

Actual result

Step 5:
Exception: A non-numeric value encountered
http://dl4.joxi.net/drive/2019/06/26/0023/4040/1548232/32/4a91df8f78.jpg

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ContentComponent: WidgetIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: ready for devReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced 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