projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rechnungs- und Gutschriftsnummern werden nun direkt innerhalb der Backend-Routinen...
[kivitendo-erp.git]
/
bin
/
mozilla
/
common.pl
diff --git
a/bin/mozilla/common.pl
b/bin/mozilla/common.pl
index
86f797b
..
ff5cc75
100644
(file)
--- a/
bin/mozilla/common.pl
+++ b/
bin/mozilla/common.pl
@@
-17,9
+17,7
@@
use SL::Common;
sub save_form {
$lxdebug->enter_sub();
sub save_form {
$lxdebug->enter_sub();
- my $yaml = new YAML;
- $yaml->Indent(1);
- my $old_form = $yaml->dump($form);
+ my $old_form = YAML::Dump($form);
$old_form =~ s|!|!!|g;
$old_form =~ s|\n|!n|g;
$old_form =~ s|\r|!r|g;
$old_form =~ s|!|!!|g;
$old_form =~ s|\n|!n|g;
$old_form =~ s|\r|!r|g;
@@
-38,7
+36,8
@@
sub restore_form {
$old_form =~ s|!r|\r|g;
$old_form =~ s|!n|\n|g;
$old_form =~ s|!!|!|g;
$old_form =~ s|!r|\r|g;
$old_form =~ s|!n|\n|g;
$old_form =~ s|!!|!|g;
- $form = YAML::Load($old_form);
+ my $new_form = YAML::Load($old_form);
+ map({ $form->{$_} = $new_form->{$_}; } keys(%{$new_form}));
$lxdebug->leave_sub();
}
$lxdebug->leave_sub();
}