Skip to content

Widget condition with unexpected character not preventing from saving #4136

Closed
@devhn

Description

@devhn

Preconditions

  1. Magento 2.1

Steps to reproduce

  1. Install Magento from community branch.
  2. Create a new widget via admin (Content -->Widgets)
  3. Widget type: Catalog Products List
  4. Layout update: Specific category
  5. Widget options (conditions): Set product as new from date. Entered value: {TODAY}

Expected result

  1. It should display an error about unexpected character and not allow to save the widget

Actual result

  1. Upon saving the widget it display and error on frontend (attached)
  2. When trying to edit the widget it displays an error on backend (attached)

This happens when using {TODAY} as a time value and not actual formatted date.
Is the {TODAY} parameter obsolete? And will there be an option to delete the widget from the administration in the future as currently there is no selection options with actions within the Widgets section?

errors.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: 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.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions