https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27011
Bug ID: 27011
Summary: Warnings in returns.pl
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: P5 - low
Component: Circulation
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
When you check-in some books you get the following warnings to error logs:
> [WARN] Use of uninitialized value in concatenation (.) or string at
> /usr/share/koha/intranet/cgi-bin/circ/returns.pl line 164.
> [WARN] Use of uninitialized value in concatenation (.) or string at
> /usr/share/koha/intranet/cgi-bin/circ/returns.pl line 402.
This seems to be due to treating the patron fields as non-null values:
> 164 my $name = $patron ? $patron->surname . ", " . $patron->title . " "
> . $patron->firstname : '';
The DB schema allows NULL values (and I think that is okay) so we should check
for every one of these whether the value is defined or not before using it.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
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/