05/19 Implement Changing QR code name when editing
This commit is contained in:
+2
-2
@@ -461,8 +461,8 @@ def edit_qr_code(qr_id):
|
||||
}
|
||||
|
||||
# Update QR code fields
|
||||
new_name = request.form['name']
|
||||
qr_code.name = new_name
|
||||
# Name is locked after creation — ignore any submitted value to preserve QR URL integrity
|
||||
new_name = qr_code.name
|
||||
|
||||
# --- ADDED: for dynamic QR codes, location/address are auto-managed ---
|
||||
new_qr_type = request.form.get('qr_type', 'standard')
|
||||
|
||||
Reference in New Issue
Block a user