projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix bei Artikelstammdaten: Beim erneuten Aufrufen des Sprachenfensters wurden...
[kivitendo-erp.git]
/
SL
/
Form.pm
diff --git
a/SL/Form.pm
b/SL/Form.pm
index
a926b3c
..
0445a25
100644
(file)
--- a/
SL/Form.pm
+++ b/
SL/Form.pm
@@
-611,9
+611,10
@@
sub parse_html_template2 {
sub show_generic_error {
my ($self, $error, $title, $action) = @_;
sub show_generic_error {
my ($self, $error, $title, $action) = @_;
- my $add_params = {};
- $add_params->{"title"} = $title if ($title);
- $self->{"label_error"} = $error;
+ my $add_params = {
+ 'title_error' => $title,
+ 'label_error' => $error,
+ };
my @vars;
if ($action) {
my @vars;
if ($action) {
@@
-626,21
+627,26
@@
sub show_generic_error {
}
$add_params->{"VARIABLES"} = \@vars;
}
$add_params->{"VARIABLES"} = \@vars;
+ $self->{title} = $title if ($title);
+
$self->header();
$self->header();
- print
($self->parse_html_template("generic/error", $add_params)
);
+ print
$self->parse_html_template2("generic/error", $add_params
);
die("Error: $error\n");
}
sub show_generic_information {
die("Error: $error\n");
}
sub show_generic_information {
- my ($self, $error, $title) = @_;
+ my ($self, $text, $title) = @_;
+
+ my $add_params = {
+ 'title_information' => $title,
+ 'label_information' => $text,
+ };
- my $add_params = {};
- $add_params->{"title"} = $title if ($title);
- $self->{"label_information"} = $error;
+ $self->{title} = $title if ($title);
$self->header();
$self->header();
- print
($self->parse_html_template("generic/information", $add_params)
);
+ print
$self->parse_html_template2("generic/information", $add_params
);
die("Information: $error\n");
}
die("Information: $error\n");
}