International-Aerobatic-Club / iaccdb

IAC Aerobatic Contest Database
iaccdb.iac.org
1 stars 1 forks source link

`DataPostsController#resubmit` uses `DataPost#contest_id` value rather than the value in the XML file #262

Open djmolny opened 2 months ago

djmolny commented 2 months ago

Contest scorers sometimes associated JaSPer Power and Glider data sets with the same IACCDB Contest#id value, causing one set of results to clobber the other.

This can be fixed by manually editing the appropriate JaSPer XML upload file, except that in the case of a resubmit operation, IACCDB retrieves the contest ID number from the Rails database rather than the XML file.

Therefore the current value in the XML file should take precedecence.