projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
805bd93
)
Beim Laden von Entwürfen nicht restore_form() benutzen, weil restore_form() erwartet...
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 30 May 2007 15:12:06 +0000
(15:12 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 30 May 2007 15:12:06 +0000
(15:12 +0000)
bin/mozilla/drafts.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/drafts.pl
b/bin/mozilla/drafts.pl
index
18af531
..
b575715
100644
(file)
--- a/
bin/mozilla/drafts.pl
+++ b/
bin/mozilla/drafts.pl
@@
-7,6
+7,8
@@
#
#======================================================================
+use YAML;
+
use SL::Drafts;
require "bin/mozilla/common.pl";
@@
-98,7
+100,8
@@
sub load_draft {
my ($old_form, $id, $description) = Drafts->load(\%myconfig, $form, $form->{id});
if ($old_form) {
- restore_form($old_form, 1);
+ $old_form = YAML::Load($old_form);
+ @{$form}{keys %{ $old_form } } = @{$old_form}{keys %{ $old_form } };
$form->{draft_id} = $id;
$form->{draft_description} = $description;
$form->{remove_draft} = 'checked';