Marketing module scripts do some additional work after loading promotion, such as transforming coupons or preparing dynamic expression blocks, including loading additional data for categories and products. This change moves this code into additional function which can be called if promotion was created or changed outside of the blade and then passed to it.
In module:
initialzieBladeData(data)
...
function initializeBladeData(data)
{
...
blade.prepareData(data)
...
}
From outside:
api.update(options, function (data) // created or updated promotion
{
blade.parentBlade.prepareData(data).then(function () {
blade.parentBlade.currentEntity = data;
});
});
Description
Marketing module scripts do some additional work after loading promotion, such as transforming coupons or preparing dynamic expression blocks, including loading additional data for categories and products. This change moves this code into additional function which can be called if promotion was created or changed outside of the blade and then passed to it.
In module:
From outside:
References
QA-test:
Jira-link:
Artifact URL:
https://vc3prerelease.blob.core.windows.net/packages/VirtoCommerce.Marketing_3.807.0-pr-227-be37.zip