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

(-)a/misc/cronjobs/holds/holds_reminder.pl (-3 / +2 lines)
Lines 228-241 foreach my $branchcode (@branchcodes) { #BEGIN BRANCH LOOP Link Here
228
    # Check that this branch has the letter code specified or skip this branch
228
    # Check that this branch has the letter code specified or skip this branch
229
229
230
    # FIXME What if we don't want to default if the translated template does not exist?
230
    # FIXME What if we don't want to default if the translated template does not exist?
231
    my $template_exists = Koha::Notice::Templates->search(
231
    my $template_exists = Koha::Notice::Templates->find_effective_template(
232
        {
232
        {
233
            module     => 'reserves',
233
            module     => 'reserves',
234
            code       => $lettercode,
234
            code       => $lettercode,
235
            branchcode => $branchcode,
235
            branchcode => $branchcode,
236
            lang       => 'default',
236
            lang       => 'default',
237
        }
237
        }
238
    )->count;
238
    );
239
    unless ($template_exists) {
239
    unless ($template_exists) {
240
        $verbose and print qq|Message '$lettercode' content not found for $branchcode\n|;
240
        $verbose and print qq|Message '$lettercode' content not found for $branchcode\n|;
241
        next;
241
        next;
242
- 

Return to bug 30667