05/19 Implement Changing QR code name when editing

This commit is contained in:
2026-05-19 16:17:14 -04:00
parent eb991bd645
commit 0a85fa8fe3
+2 -2
View File
@@ -461,8 +461,8 @@ def edit_qr_code(qr_id):
} }
# Update QR code fields # Update QR code fields
new_name = request.form['name'] # Name is locked after creation — ignore any submitted value to preserve QR URL integrity
qr_code.name = new_name new_name = qr_code.name
# --- ADDED: for dynamic QR codes, location/address are auto-managed --- # --- ADDED: for dynamic QR codes, location/address are auto-managed ---
new_qr_type = request.form.get('qr_type', 'standard') new_qr_type = request.form.get('qr_type', 'standard')