X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/9d8f72a0f92d01e1e25b14788b193cd662cad0d3..36857857e2c4210c0080974b50e469507dfb912d:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 600e9b81c..6f183e90a 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -660,6 +660,16 @@ sub show_generic_error { $self->{title} = $params{title} if $params{title}; + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Back'), + call => [ 'kivi.history_back' ], + accesskey => 'enter', + ], + ); + } + $self->header(); print $self->parse_html_template("generic/error", $add_params); @@ -1191,7 +1201,7 @@ sub send_email { id => $attfile->id, type => $attfile->mime_type, name => $attfile->file_name, - content => $attfile->get_content }; + content => $attfile->get_content ? ${ $attfile->get_content } : undef }; } } $mail->{message} =~ s/\r//g; @@ -1283,6 +1293,7 @@ sub get_formname_translation { dunning => $main::locale->text('Dunning'), letter => $main::locale->text('Letter'), ic_supply => $main::locale->text('Intra-Community supply'), + statement => $main::locale->text('Statement'), ); $main::lxdebug->leave_sub();