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:
Benjamin Rokseth 2015-03-05 12:18:09 +01:00 committed by Tomas Cohen Arazi
parent 2ab4a4287b
commit e4d88bcf43

View file

@ -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;
}