Bundles: keep parts from being deleted out from under them
Bundle parts are JSON, so deleting a service left bundles pointing at nothing (shown as "Item" in the shop). An onRecordDelete hook on items now refuses while a bundle contains it or a usable code still has sessions of it to book. A bundle with an inactive part is no longer sold or issued; the admin items list marks it "Not on sale" and shows how many codes are waiting on an inactive service. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
This commit is contained in:
parent
c7e019131a
commit
338aef9e01
5 changed files with 109 additions and 13 deletions
Loading…
Add table
Add a link
Reference in a new issue