Bug 14597: Reverting a batch where a record overlaid is now deleted record will fail
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 23 Jul 2015 16:14:25 +0000 (12:14 -0400)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Mon, 28 Sep 2015 15:20:41 +0000 (12:20 -0300)
commit9b0f065392f58f635e8cef8259d56d1f6476bdae
tree8857c6ea659a43770d42e3bd17ff5960334746ad
parentc57fb17f076f67a6d3abb93a6dc415a24dad65ca
Bug 14597: Reverting a batch where a record overlaid is now deleted record will fail

If batch of records is used to overlay existing records, and one of
those records is deleted, any attempt to revert this batch will fail.

The unanimous consensus is that deleted records should stay deleted (
 https://lists.katipo.co.nz/public/koha/2015-June/043048.html ).

Test Plan:
1) Import a batch of records
2) Import the same batch again, using ISBN as a matcher for overlay
3) Find a record that overlayed a previous record and delete it
   ( the match type will be "match applied" and there will be a link in
     "match details" )
4) Attempt to revert the second batch ( that overlayed the first )
5) The progress will stop at some point and never complete
6) Apply this patch
7) Attempt to revert the second batch again
8) This time it should succeed!

Signed-off-by: Do, Tam T <tdo@albright.edu>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
C4/ImportBatch.pm