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

            Bug ID: 30781
           Summary: Use of uninitialized value $val in substitution
                    iterator at /usr/share/koha/lib/C4/Letters.pm line
                    665.
 Change sponsored?: ---
           Product: Koha
           Version: 20.11
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P5 - low
         Component: Command-line Utilities
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

In our installation 20.11.17 it's these lines:

    if (%$substitute) {
        while ( my ($token, $val) = each %$substitute ) {
            if ( $token eq 'items.content' ) {
                $val =~ s|\n|<br/>|g if $letter->{is_html};
            }

-->            $letter->{title} =~ s/<<$token>>/$val/g;
            $letter->{content} =~ s/<<$token>>/$val/g;
       }
    }

Itemscontent is used as:

koha-foreach --chdir --enabled --email
/usr/share/koha/bin/cronjobs/overdue_notices.pl -t -itemscontent
date_due,title,subtitle,part_number,part_name,author,itemcallnumber,barcode

koha-foreach --chdir --enabled --email
/usr/share/koha/bin/cronjobs/advance_notices.pl -c --itemscontent
date_due,title,subtitle,part_number,part_name,author,itemcallnumber,barcode


This creates quite a bit of noise from the cronjobs, so it would be nice to get
a hint on how to fix this or a patch.

In master the code in question is unchanged.

-- 
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/

Reply via email to