change barcode scan form to use requestSubmit() to fix CSRF token not being generated on submission (#1191)

This commit is contained in:
swdee 2026-01-19 10:14:17 +13:00 committed by GitHub
parent 86f53b2956
commit 131023da67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,6 +70,6 @@ export default class extends Controller {
//Put our decoded Text into the input box
document.getElementById('scan_dialog_input').value = decodedText;
//Submit form
document.getElementById('scan_dialog_form').submit();
document.getElementById('scan_dialog_form').requestSubmit();
}
}
}