]> git.koha-community.org Git - koha.git/commit
Bug 26175: Remove warn if undefined barcode in misc/export_records.pl
authorFridolin Somers <fridolin.somers@biblibre.com>
Fri, 7 Aug 2020 08:58:51 +0000 (10:58 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 4 Sep 2020 20:17:30 +0000 (20:17 +0000)
commit756283883a5682c87d3424eaeaf9f286b8d8f3e2
treed670fbaa54d218fb48b73ea08a0403ee12861a6b
parent6c442331b5bc981ca3be61308a65cbc937bdcb21
Bug 26175: Remove warn if undefined barcode in misc/export_records.pl

When using misc/export_records.pl --deleted_barcodes if barcode is NULL you get warn :
Use of uninitialized value in say at /home/koha/src/misc/export_records.pl

Also exporting barcode if empty string makes no sense.

Test plan :
1) Delete an item with barcode = NULL
2) Run : misc/export_records.pl --date=`date +%d/%m/%Y` --deleted_barcodes --filename=/tmp/deleted_barcodes
3) Check you se no warn "Use of uninitialized value in say ..."
4) Delete an item with barcode = ''
5) Run 2)
6) Check there is no empty line in /tmp/deleted_barcodes

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 4d9ab04a9391a4960a6155d983fdf839467bfdf4)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
misc/export_records.pl