[Koha-bugs] [Bug 34532] New: Silence warns in Patroncard.pm when layout values are empty
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Aug 14 23:10:23 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34532
Bug ID: 34532
Summary: Silence warns in Patroncard.pm when layout values are
empty
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Label/patron card printing
Assignee: cnighswonger at foundations.edu
Reporter: lucas at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
To recreate:
1. Go to patron card creator and make a patron card batch, card layout, and
card template.
2. In the card layout leave some values blank for Lower left X coordinate and
Lower left Y coordinate.
3. Now go create a card batch while tailing the plack-intranet-error log/
4. Notice in the logs:
[2023/08/14 20:50:54] [WARN] Argument "" isn't numeric in multiplication (*) at
/kohadevbox/koha/C4/Patroncards/Patroncard.pm line 109.
[2023/08/14 20:50:54] [WARN] Argument "" isn't numeric in multiplication (*) at
/kohadevbox/koha/C4/Patroncards/Patroncard.pm line 248.
[2023/08/14 20:50:54] [WARN] Argument "" isn't numeric in multiplication (*) at
/kohadevbox/koha/C4/Patroncards/Patroncard.pm line 249.
The more patrons in a given batch the more of these errors you will see.
If no llx or lly value is given we should assume it is 0.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list