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:
bbbedfd
)
SL::DB<->Presenter: Argumente aus Templates korrekt splicen
author
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 27 Dec 2017 10:47:01 +0000
(11:47 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 2 Jan 2018 13:00:08 +0000
(14:00 +0100)
SL/DB/Helper/Presenter.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Helper/Presenter.pm
b/SL/DB/Helper/Presenter.pm
index
0a33902
..
1dae8cc
100644
(file)
--- a/
SL/DB/Helper/Presenter.pm
+++ b/
SL/DB/Helper/Presenter.pm
@@
-19,6
+19,8
@@
sub AUTOLOAD {
eval "require $self->[0]";
+ splice @args, -1, 1, %{ $args[-1] } if @args && (ref($args[-1]) eq 'HASH');
+
if (my $sub = $self->[0]->can($method)) {
return $sub->($self->[1], @args);
}