https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30638
Bug ID: 30638
Summary: Odd number of elements in anonymous hash at
C4/Letters.pm line 827
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Originating from 20.11 warnings: Odd number of elements in anonymous hash at
C4/Letters.pm line 878
output_pref({ dt => dt_from_string( $replacedby ), dateonly => $dateonly });
This is line 827 on current master.
If dt_from_string returns undef in list context, we get the odd number warn.
Also note the following lines:
if ( $letter->{ $letter_field } ) {
$letter->{ $letter_field } =~
s/\Q<<$table.$field$filter_string_used>>\E/$replacedby_date/g;
$letter->{ $letter_field } =~
s/\Q<<$field$filter_string_used>>\E/$replacedby_date/g;
If output_pref should correctly return undef on a NULL from dt_from_string, the
undefined result triggers two warnings in the regexes.
--
You are receiving this mail because:
You are the assignee for the bug.
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/