From: Sven Schöling Date: Wed, 27 Dec 2017 10:47:01 +0000 (+0100) Subject: SL::DB<->Presenter: Argumente aus Templates korrekt splicen X-Git-Tag: release-3.5.4~548 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=cef8c551dbd5f95f2cffed8713058a45b3bfde56;p=kivitendo-erp.git SL::DB<->Presenter: Argumente aus Templates korrekt splicen --- diff --git a/SL/DB/Helper/Presenter.pm b/SL/DB/Helper/Presenter.pm index 0a33902af..1dae8ccbd 100644 --- 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); }