magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Widget condition with unexpected character not preventing from saving

Open devhn opened this issue 10 years ago • 5 comments

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

devhn avatar Apr 13 '16 10:04 devhn

internal issue MAGETWO-53440

piotrekkaminski avatar May 24 '16 16:05 piotrekkaminski

@devhn, thank you for your report. We've created internal ticket(s) MAGETWO-53440 to track progress on the issue.

magento-engcom-team avatar Oct 06 '17 07:10 magento-engcom-team

I'm gonna have a look on this.

vasilii-b avatar Jan 23 '18 19:01 vasilii-b

Hi @devhn. Thank you for your report. The issue has been fixed in magento/magento2#14485 by @vasilii-b in 2.2-develop branch Related commit(s):

The fix will be available with the upcoming 2.2.8 release.

magento-engcom-team avatar Nov 24 '18 11:11 magento-engcom-team

Hi @devhn. Thank you for your report. The issue has been fixed in magento/magento2#19390 by @vasilii-b in 2.3-develop branch Related commit(s):

The fix will be available with the upcoming 2.3.1 release.

magento-engcom-team avatar Jan 16 '19 00:01 magento-engcom-team