From: Moritz Bunkus Date: Tue, 17 Jan 2017 11:19:16 +0000 (+0100) Subject: ActionBar: Form->show_generic_error umgestellt X-Git-Tag: release-3.5.4~1301 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=dd7cbf4f15f0bb916ab23c546393c87d2a3d159f;p=kivitendo-erp.git ActionBar: Form->show_generic_error umgestellt --- diff --git a/SL/Form.pm b/SL/Form.pm index 600e9b81c..55817db55 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); diff --git a/templates/webpages/generic/error.html b/templates/webpages/generic/error.html index 2baa2e369..1e23f73c2 100644 --- a/templates/webpages/generic/error.html +++ b/templates/webpages/generic/error.html @@ -4,5 +4,3 @@
[% IF title_error %][% title_error %][% ELSE %][% 'Error!' | $T8 %][% END %]

[% label_error %]

- -