Skip to content

Regression: Cart Price Rules: Empty "From" and "To" values are replaced with todays date #6122

@heldchen

Description

@heldchen

In Magento 1 you could have Cart Sales Rules with no start and/or end date, i.e. codes with unlimited validity. In Magento 2, saving a rule with an empty start and/or end date will automatically fill the current date as value.

Preconditions

  1. Magento 2.1.0

Steps to reproduce

  1. Create new "Cart Price Rule"
  2. Do not fill a value in "From" and "To"
  3. Save & continue editing

Expected result

  1. "From" and "To" fields should be empty
  2. The rule should be saved without date and be always valid

Actual result

  1. Todays date is filled into "From" and "To"
  2. The rule is date restricted

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: TaxFixed in 2.2.xThe issue has been fixed in 2.2 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: 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 releasebug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions