Skip to content

Edit discount reward, resets/removes date range on save #728

@BenjaminLindgaard

Description

@BenjaminLindgaard

Which component is this issue related to?

Umbraco Commerce (Core)

Which Umbraco Commerce version are you using? (Please write the exact version, example: 10.1.0)

16.0.0-rc1

Bug summary

When editing a discount code, pressing the Rewards element and saves. The date range is removed on save

Specifics

Im using Umbraco.cms 16.0.0 cloud

Steps to reproduce

  1. Setup the Umbraco demostore
  2. Created a discount code with:
    Reward: "Orderline amount reward"
    Price type: Base Price
    Percentage: 10%
  3. Select a date range and set start and expiry, hit save
  4. Edit the newly saved discount (dont need to change anything), hit save
  5. Result: date range is removed on save.

Gif on how to reproduce:

Image

Expected result / actual result

Editing the discount shouldn't remove or reset the selected date range

Dependencies

No response


This item has been added to our backlog AB#54455

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions