No alert message about non-saved changes in modal form is appearing, if any additional modal window was opened before.
Steps to reproduce:
- Open Data collection -> Maintenance
- Click "Create maintenance period"
- Add some data
- Open any additional pop-up, for example Host groups "Select".
- Close the pop-up
- Click back or F5 to refresh the page.
No alert messages that changes will be lost, page is refreshed and/or return to previous page.
Alert message with text "Changes you made may not be saved." should appear and page refreshed only after clicking "Leave".
Note! In Zabbix 6.0 there was only host modal form and this message appeared correctly, however, in 6.4 this problem is also persists in host modal forms.