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

--- Comment #42 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 192519
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=192519&action=edit
Bug 35612: (QA follow-up) Fix uninitialized value warnings

When LostChargesControl system preference is not set (undefined),
the code was generating 'Use of uninitialized value' warnings
when comparing $lost_control_pref in string equality checks.

This adds defined checks before the comparisons to handle the
case where the preference is undefined, treating it the same as
'ItemHomeLibrary' (the default).

Test plan:
1. Run prove t/db_dependent/Circulation.t
2. Verify all tests pass without warnings

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to