Koha/tools
Andrew Nugged 797ebc65e8
Bug 31000: Warn removal: param record_type can be undef
Uninitialized value warning on /tools/export.pl when $record_type is undef

Use of uninitialized value $record_type in string eq
at /home/vagrant/kohaclone/tools/export.pl line 43.

This warning in koha-testing-docker appears in:
/var/log/koha/kohadev/intranet-error.log

This patch fixes it by working when $record_type is Undef.
The functionality still remains the same but warning doesn't flood
error log.
To reproduce:
1. Go to export data tool page (/tools/export.pl).
2. Check the error log and find the upper mentioned warning,
check the timestamp to ensure that it was added when you loaded the page.
3. Apply the patch.
4. Load the page again, ensure that the same warning doesn't get added
to the log file again.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-07-11 18:20:15 -03:00
..
csv-profiles
access_files.pl
additional-contents.pl Bug 22659: (follow-up) Add category to redirect 2022-06-25 10:52:35 -03:00
ajax-inventory.pl
automatic_item_modification_by_age.pl Bug 22827: Add age dependency on other fields than dateaccessioned 2022-04-08 15:49:16 +02:00
background-job-progress.pl
batch_delete_records.pl Bug 29771: Scalar context for split 2022-03-08 23:03:34 -10:00
batch_extend_due_dates.pl
batch_record_modification.pl Bug 29771: Scalar context for split 2022-03-08 23:03:34 -10:00
batch_records_ajax.pl Bug 22785: Allow option to choose which record match is applied during import 2022-05-03 11:19:50 -10:00
batchMod.pl Bug 30525: Items batch modification broken 2022-04-21 13:41:36 -10:00
cleanborrowers.pl
copy-holidays.pl
csv-profiles.pl
exceptionHolidays.pl
export.pl Bug 31000: Warn removal: param record_type can be undef 2022-07-11 18:20:15 -03:00
holidays.pl
import_borrowers.pl Bug 29005: Add option to send welcome email from patron imports 2022-04-20 09:03:39 -10:00
inventory.pl Bug 29695: (follow-up) Remove C4::Reports::Guided::_get_column_defs 2022-04-12 11:40:16 +02:00
letter.pl Bug 24865: (QA follow-up) Remove hardcoded notice name from protected_letters 2022-07-05 11:37:39 -03:00
manage-marc-import.pl Bug 29325: (QA follow-up) Tidy up 2022-06-24 11:36:19 -03:00
marc_modification_templates.pl
modborrowers.pl Bug 29926: Add ability for superlibrarians to batch edit password expiration dates 2022-05-06 10:33:09 -10:00
newHolidays.pl
overduerules.pl
picture-upload.pl Bug 6815: Capture member photo via webcam 2022-03-24 14:22:10 -10:00
problem-reports.pl
quotes-upload.pl
quotes.pl
scheduler.pl
showdiffmarc.pl Bug 29333: Fix encoding of imported UNIMARC authorities 2022-07-08 15:43:33 -03:00
stage-marc-import.pl Bug 30525: Items batch modification broken 2022-04-21 13:41:36 -10:00
stockrotation.pl
tools-home.pl
upload-cover-image.pl Bug 30972: Don't replace biblio's local cover images when uploading an image's image 2022-06-20 10:39:34 -03:00
upload-file.pl
upload.pl
viewlog.pl Bug 19532: (RM follow-up) More use of system preference 2022-03-14 23:11:12 -10:00