Use next instead of return when generating templates.
In case patron has enabled a message type that misses a template,
next message type will be attempted instead of returning at once.
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
'borrowers' => $borrower,
'branches' => $branch,
}
- ) or return;
+ ) or next;
C4::Message->enqueue($letter, $borrower, $_);
} else {
#warn "append to old message";
'borrowers' => $borrower,
'branches' => $branch,
}
- ) or return;
+ ) or next;
$message->append($letter);
$message->update;
}