Bug 12344: QA followup: use next instead of return
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>
This commit is contained in:
parent
2ab4a4287b
commit
e4d88bcf43
1 changed files with 2 additions and 2 deletions
|
@ -3274,7 +3274,7 @@ sub SendCirculationAlert {
|
|||
'borrowers' => $borrower,
|
||||
'branches' => $branch,
|
||||
}
|
||||
) or return;
|
||||
) or next;
|
||||
C4::Message->enqueue($letter, $borrower, $_);
|
||||
} else {
|
||||
#warn "append to old message";
|
||||
|
@ -3291,7 +3291,7 @@ sub SendCirculationAlert {
|
|||
'borrowers' => $borrower,
|
||||
'branches' => $branch,
|
||||
}
|
||||
) or return;
|
||||
) or next;
|
||||
$message->append($letter);
|
||||
$message->update;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue