Training Report Double Posting #147

Closed
opened 2026-01-06 00:12:39 -06:00 by EagleTrooper · 0 comments
Owner

Turns out if you intentionally or accidentally double click the submit button in the training report. It will actually post 2 reports of exactly the same data. This can be recreated with clicking the post button as fast as possible until the page changes.

Possible solution is to disable the button instantly after first click with no errors on page OR do a check of last submission ID on the database and check if it exists within (example) 5 seconds with the same information and avoid double post.

Turns out if you intentionally or accidentally double click the submit button in the training report. It will actually post 2 reports of exactly the same data. This can be recreated with clicking the post button as fast as possible until the page changes. Possible solution is to disable the button instantly after first click with no errors on page OR do a check of last submission ID on the database and check if it exists within (example) 5 seconds with the same information and avoid double post.
EagleTrooper added the Kind/Bug
Priority
Medium
Training Reports
labels 2026-01-06 00:12:39 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 17th-Ranger-Battalion-ORG/milsim-site-v4#147