Skip to content

Commit

Permalink
COMMERCE-5977 Force activation only when coming from status scheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardo-alberti committed Mar 5, 2021
1 parent 7deedb5 commit 72b8e30
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -951,7 +951,11 @@ public CommerceDiscount updateStatus(
commerceDiscount.setExpirationDate(null);
}

commerceDiscount.setActive(true);
if (commerceDiscount.getStatus() ==
WorkflowConstants.STATUS_SCHEDULED) {

commerceDiscount.setActive(true);
}
}

if (status == WorkflowConstants.STATUS_EXPIRED) {
Expand Down

0 comments on commit 72b8e30

Please sign in to comment.