@@ -, +, @@ uses default letter template --- misc/cronjobs/holds/holds_reminder.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/misc/cronjobs/holds/holds_reminder.pl +++ a/misc/cronjobs/holds/holds_reminder.pl @@ -228,14 +228,14 @@ foreach my $branchcode (@branchcodes) { #BEGIN BRANCH LOOP # Check that this branch has the letter code specified or skip this branch # FIXME What if we don't want to default if the translated template does not exist? - my $template_exists = Koha::Notice::Templates->search( + my $template_exists = Koha::Notice::Templates->find_effective_template( { module => 'reserves', code => $lettercode, branchcode => $branchcode, lang => 'default', } - )->count; + ); unless ($template_exists) { $verbose and print qq|Message '$lettercode' content not found for $branchcode\n|; next; --