Editing multiple scheduled reminders at the same time overwrites the most recently opened
Overview
If you open the Edit link for multiple Scheduled Reminders in new tabs/windows and save any but the most recently opened, that most recently opened reminder gets overwritten.
Reproduction steps
- Administer > Communications > Schedule Reminders
- Create two new Reminders, Test 1 and Test 2. The specifics don't seem to matter.
- Observe that the list has Test 1 and Test 2.
- Open the Edit link for Test 1 in a new window or tab.
- Open the Edit link for Test 2 in a new window or tab.
- Rename Test 1 to Test 3 (and/or change any other settings).
- Save Test 1 (now Test 3)
- View the Scheduled Reminders list
Current behaviour
The list now reads Test 1, Test 3.
Test 2, which was opened after Test 1, is overwritten by the changes and is now Test 3. The original Test 1 remains untouched.
Expected behaviour
The list should read Test 3, Test 2.
Test 1 should be renamed to Test 3. Nothing should have changed on Test 2.
Environment information
Reproduced on WordPress 5.9.7 / Civi 5.8.1, WordPress 6.2.2 / Civi 5.61.3 and on d9-master / 5.63.alpha1.