KamoCRM

Default-product set failed — HQL bulk UPDATE disallows the vendor→org join

FixSecurityService
Shipped
5 ஜூலை, 2026 அன்று 11:24 PM UTC
Author
Kamo
Commit
d544a3f

setDefault used a bulk 'update LeadVendorProduct ... where p.vendor.id in (subquery)' — Hibernate bulk updates reject the implicit association join, so the call threw (surfaced as 'Failed to set default product'). Rewrite as SELECT (the proven resolveDefaultProduct pattern) + entity saves; single-active means at most one row to demote.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing