Backend record locking should be on session basis
If a user opens a record, a lock is saved in sys_lockedrecords.
The opendocs module saves document in BE session (so different browsers -> different open documents). Furthermore, opendocs doesn't update sys_lockedrecords, if a document is closed.
Attached is a part of the needed patch. As I think it's too late for 4.3, I only want to document this here.What still has to be considered:
- What should be done, if a user creates more locks on the same document? Should then at releasing one lock all other locks released or only the one of the current session? Latter would cause confusion, if e.g. a web browser crashes and then user opens the record again. The first lock would remain for 2 hours.
- Sure sth. more...
(issue imported from #M11796)