Skip to content

Commit

Permalink
Merge pull request ledgersmb#8563 from ehuelsmann/fix/master/email-no…
Browse files Browse the repository at this point in the history
…-attachments

Fix persisting e-mail workflows without attachments
  • Loading branch information
ehuelsmann authored Jan 2, 2025
2 parents f8f7649 + de2f745 commit 90bb096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/LedgerSMB/Workflow/Persister/Email.pm
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ sub _save_email_data {
$wf->id, $data->@{qw(from to cc bcc notify subject body expansions)})
or $log->error($dbh->errstr);
}
for my $att ($ctx->param( '_attachments' )->@*) {
for my $att ( ($ctx->param( '_attachments' ) // [])->@* ) {
if (my $c = tied $att->{content}) {
$c->persist;
next;
Expand Down

0 comments on commit 90bb096

Please sign in to comment.