Duplicate validation message in some discount types

Found in

EPiServer.Commerce 9.17.0

Fixed in

EPiServer.Commerce 9.19.0

Created

Jun 10, 2016

Updated

Jul 06, 2016

State

Closed, Fixed and tested


Description

Steps to reproduce:

  1. Create a discount of the type "Spend for Discounted Selection", "Discount off Total Order Value", or "Discount off Shipping Costs".
  2. Input all required fields.
  3. Select the "Amount off" option but don't input data.
  4. Save the discount.

Expected: You see a message "At least one discount amount must be entered."
Actual: You see a duplicate message "At least one discount amount must be entered."