X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FForm.pm;h=56dc795e14bb25564f70583283b79f9abd854ffa;hb=0b2ca0abb53db0d372bcc51e8093abb30f2aeea6;hp=90c8c9b990358c65b91f9a7718999f6c9e645389;hpb=8c31500d9372e4e1585b895ce4d43d67a5e517e5;p=kivitendo-erp.git diff --git a/SL/Form.pm b/SL/Form.pm index 90c8c9b99..56dc795e1 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -3535,7 +3535,7 @@ sub prepare_for_printing { $self->{formname} ||= $self->{type}; $self->{media} ||= 'email'; - die "'media' other than 'email' or 'file' is not supported yet" unless $self->{media} =~ m/^(?:email|file)$/; + die "'media' other than 'email', 'file', 'printer' is not supported yet" unless $self->{media} =~ m/^(?:email|file|printer)$/; # set shipto from billto unless set my $has_shipto = any { $self->{"shipto$_"} } qw(name street zipcode city country contact);