modal appears and record is added to opened records menu
close the modal clicking outside the modal itself
Wrong behaviour: record is still opened so it remains locked while it should not.
Expected behaviour: record gets unlocked.
If the editor instead of clicking outside the modal, presses the close button, the record **gets unlocked but the EXT:opendocs menu doesn't reflect this change (i.e.: the record seems still open looking at opendocs menu but in reality it is not)
Reproduce:
Wrong behaviour: record is still opened so it remains locked while it should not. Expected behaviour: record gets unlocked.
If the editor instead of clicking outside the modal, presses the close button, the record **gets unlocked but the EXT:opendocs menu doesn't reflect this change (i.e.: the record seems still open looking at opendocs menu but in reality it is not)