Closed damianhxy closed 3 months ago
As a result on #2024, version numbering of submissions no longer resets after the deletion of a submission.
e.g. previously, creating submissions 1 and 2, deleting both, and then creating a new submission would result in version 1 again.
Now, it results in version 3.
To remedy, add the necessary logic to AUD's update_latest_submissions, which is called on after_destroy of a submission.
update_latest_submissions
after_destroy
As a result on #2024, version numbering of submissions no longer resets after the deletion of a submission.
e.g. previously, creating submissions 1 and 2, deleting both, and then creating a new submission would result in version 1 again.
Now, it results in version 3.
To remedy, add the necessary logic to AUD's
update_latest_submissions
, which is called onafter_destroy
of a submission.