- Issue created by @ts.ag
Attaching a simplistic patch which enables skipping the problematic operations inside both postSave()s if a batch is running and corresponding flags are set in its definition. Usage:
$batch_definition = [ 'commerce_promotion__skip_ops' => TRUE, 'commerce_promotion_coupon__skip_ops' => TRUE, ... ]; batch_set($batch_definition);
- last update
11 months ago 790 pass - last update
11 months ago 790 pass - Status changed to Needs work
11 months ago 5:17pm 17 January 2024 - 🇮🇱Israel jsacksick
I experienced issues with this code too... In one of the projects I'm running, I completely stopped referencing coupons from the promotion.
Whenever the promotion references too many coupons, crashes are experienced on save.
Perhaps we can use direct SQL queries instead of fully loading entities etc... I don't think your fix is the right one. Expanded previous patch to use the skip feature in the batch from CouponGenerateForm.
- last update
10 months ago Patch Failed to Apply - last update
10 months ago Patch Failed to Apply - last update
10 months ago Patch Failed to Apply - last update
10 months ago Patch Failed to Apply