From 0c79984619df8739167da0a8596c088daf8e2699 Mon Sep 17 00:00:00 2001 From: "Troll (Hermes Agent)" Date: Tue, 11 Aug 2026 03:10:17 +0000 Subject: [PATCH] Fix nested form breaking Mark Paid & Deliver button --- app.py | 2 ++ templates/admin/request.html | 14 ++++---------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/app.py b/app.py index 7a7ba9b..89bf9fd 100644 --- a/app.py +++ b/app.py @@ -1142,6 +1142,8 @@ def admin_request(rid): elif action == 'mark_paid_deliver': # Finalize: record Square payment ref, attach approved MP3s, email customer. + # Also capture the deliver_wav checkbox from the same form. + update_request(rid, deliver_wav=1 if request.form.get('deliver_wav') else 0) if req.get('customer_approved', 'none') == 'none': flash('Customer must approve a version before you can mark paid or deliver.', 'error') return redirect(url_for('admin_request', rid=rid)) diff --git a/templates/admin/request.html b/templates/admin/request.html index 068e81f..78aa097 100644 --- a/templates/admin/request.html +++ b/templates/admin/request.html @@ -537,16 +537,10 @@

Delivery options:

-
- - -
- -
-
+