From cef8c551dbd5f95f2cffed8713058a45b3bfde56 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 27 Dec 2017 11:47:01 +0100 Subject: [PATCH] SL::DB<->Presenter: Argumente aus Templates korrekt splicen --- SL/DB/Helper/Presenter.pm | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.20.1