[Koha-bugs] [Bug 31000] Use of uninitialized value $record_type in string eq

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 21 12:47:15 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31000

Slava Shishkin <slavashishkin at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #136388|0                           |1
        is obsolete|                            |

--- Comment #2 from Slava Shishkin <slavashishkin at gmail.com> ---
Created attachment 136389
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=136389&action=edit
Bug 31000: HOTFIX. 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 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.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list