Bug 24324: Resolve error with delete_records_via_leader.pl
authorLiz Rea <wizzyrea@gmail.com>
Fri, 3 Jan 2020 21:18:27 +0000 (21:18 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 24 Mar 2020 08:03:30 +0000 (08:03 +0000)
commit60c31d70bbdefc0d67baa514aa481076de55d278
tree74d6a1620c9f36c3c4594df32c2dc5fa4fd3e354
parent3302ad146194738c247b2ccfa7b8e3cb98478f7d
Bug 24324: Resolve error with delete_records_via_leader.pl

To test:

Have a record with the 000 position 5 set to "deleted" (record status)
Use koha-shell to run the job with the -i flag: perl misc/cronjobs/delete_records_via_leader.pl -c -i -v
* items and the record should be deleted
Mark another record with the 000 position 5 set to deleted (record status)
Use koha-shell to run the job without the -i flag: perl misc/cronjobs/delete_records_via_leader.pl -c -v
* if the record had items, it will not be deleted
* if the record did not have items, it will be deleted.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
misc/cronjobs/delete_records_via_leader.pl