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:
92e2fb5
)
Drafts: load kann jetzt zusätzliche Argumente aus form übernehmen
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 19 Jul 2016 17:25:18 +0000
(19:25 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 19 Jul 2016 17:25:18 +0000
(19:25 +0200)
SL/Controller/Draft.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/Draft.pm
b/SL/Controller/Draft.pm
index
9eff3fc
..
3f03f2c
100644
(file)
--- a/
SL/Controller/Draft.pm
+++ b/
SL/Controller/Draft.pm
@@
-82,10
+82,16
@@
sub action_load {
require $allowed_modules{ $self->draft->module };
}
+
+ my $params = delete $::form->{form};
my $new_form = YAML::Load($self->draft->form);
$::form->{$_} = $new_form->{$_} for keys %$new_form;
$::form->{"draft_$_"} = $self->draft->$_ for qw(id description);
+ if ($params && 'HASH' eq ref $params) {
+ $::form->{$_} = $params->{$_} for keys %$params;
+ }
+
$::form->{script} = $self->draft->module . '.pl';
::update();
}