View | Details | Raw Unified | Return to bug 30354
Collapse All | Expand All

(-)a/misc/cronjobs/automatic_renewals.pl (-9 / +15 lines)
Lines 306-321 sub send_digests { Link Here
306
                    borrowers => $patron->borrowernumber,
306
                    borrowers => $patron->borrowernumber,
307
                },
307
                },
308
                message_transport_type => $transport,
308
                message_transport_type => $transport,
309
            ) || warn "no letter of type '$params->{letter_code}' found for borrowernumber $borrowernumber. Please see sample_notices.sql";
309
            );
310
310
311
            next unless $letter;
311
            if ($letter) {
312
                C4::Letters::EnqueueLetter(
313
                    {
314
                        letter                 => $letter,
315
                        borrowernumber         => $borrowernumber,
316
                        from_address           => $from_address,
317
                        message_transport_type => $transport
318
                    }
319
                );
320
            }
321
            else {
322
                warn
323
"no letter of type '$params->{letter_code}' found for borrowernumber $borrowernumber. Please see sample_notices.sql";
324
            }
312
325
313
            C4::Letters::EnqueueLetter({
314
                letter                 => $letter,
315
                borrowernumber         => $borrowernumber,
316
                from_address           => $from_address,
317
                message_transport_type => $transport
318
            });
319
        }
326
        }
320
    }
327
    }
321
}
328
}
322
- 

Return to bug 30354