Try our conversational search powered by Generative AI!

PromotionTypeHandler should check for ContentType before proceeding

Found in

EPiServer.Commerce 11.0.0

Fixed in

EPiServer.Commerce 11.4.0

(Or a related package)

Created

Oct 17, 2017

Updated

Nov 10, 2017

Area

Core

State

Closed, Fixed and tested


Description

There are cases when customers add new promotion types, but they don't want to commit those to database yet. So, they set enableModelSyncCommit = false.

PromotionTypeHandler.SetPromotionsAvailability takes a list of Type and tries to set the availability for each of them, without checking for the present of the ContentType. A null check should be added.