Summary: | Item.pm "Use of uninitialized value" warn when $field var is NULL | ||
---|---|---|---|
Product: | Koha | Reporter: | Peter Vashchuk <stalkernoid> |
Component: | OPAC | Assignee: | Peter Vashchuk <stalkernoid> |
Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | david, nugged |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | --- | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: | ||
Attachments: | Bug 29858: NULL $field var causing "Use of uninitialized value" warn |
Description
Peter Vashchuk
2022-01-12 11:13:45 UTC
Created attachment 129331 [details] [review] Bug 29858: NULL $field var causing "Use of uninitialized value" warn Some fields might be null which causes "Use of uninitialized value in string eq at .../Koha/Item.pm line 639." warn. This patch prevents this warn to get thrown by checking if the field is defined first. Happy to test if you could provide the steps to set things up so that the warning is generated. Hi Peter, can you please provide a test plan? |