STEPS TO REPRODUCE
- Login as an user
- Click on Notifications bell, turn 'Watch the wiki' toggle to OFF
- Go to Notifications Settings and add an Inclusive filter (or 'Notify of the event') for 'Sandbox' page (for ex. using the Event from Pages > 'A page is modified')
- Go to Sandbox page
- Click on Notifications bell, turn 'Watch this page' toggle to ON
- Turn 'Watch this page' toggle to OFF
Only the 'Watch this page' toggle turns to ON, then turns OFF properly.
Together with 'Watch this page' toggle, also 'Watch this page and its children' toggle turns to ON.
When trying to turn any of those toggles to OFF, nothing happens in UI, but the message 'Saved!' is displayed on the bottom of the page.
However, after a page refresh, the status of the toggles is displayed properly.
The issue reproduces also on XWiki 12.10.5 and 13.2.