https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31109
--- Comment #8 from Janusz Kaczmarek <[email protected]> --- Created attachment 167375 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167375&action=edit Bug 31109: Add ability to lock bibliographic record or alert staff when another user is in the same bibliographic record Koha, till now, lacks the controll of concurrent modification of data. Perhaps the most urgent case is parallel modifications of a bibliograhic record by two independent agents. The proposed procedure, collision detection when saving a record, comes from Nick, who is also the author of the original version of the patch. This idea is simpler to implement than introducing a record lock. The idea of using a checksum to confirm that a record has not changed during editing comes from Jonathan. The other elements, including the implementation of redirecting to the merge page after a failed attempt to modify a record, come from Janusz. The checksum is passed to C4::Biblio::ModBiblio as an optional original_digest parameter, which in the future should perhaps be mandatory for all record modifications, including authority records and other Koha objects. The patch prevents also a possible collision between edit and merge. Test plan: ========== 1. In two independent browsers, A and B, open in parallel for edit the same bibliographic record. Make different changes in each browser. Save first A, then B. Reload the record in each browser. You should see, in both browsers, the version of the record modified in B. Note that you have lost the changes made in browser A without any warning. This is a serious problem. 2. Apply the patch; restart_all. 3. Repeat p. 1. While trying to save the record in browser B, you will be redirect to a merge page, with a warning about a conflict in modification, and with a possibility to merge your modification to the current version of the record, and, possibly, amend the record again in the regular editor. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
