From aa18b62a0d5ae5640e9061c44e10c19cfb3dbf9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 13 Sep 2013 13:59:44 +0200 Subject: [PATCH] GetModels: current_action Hook ersetzt durch action_name --- SL/Controller/Helper/GetModels.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SL/Controller/Helper/GetModels.pm b/SL/Controller/Helper/GetModels.pm index 8e2ede133..821d7a194 100644 --- a/SL/Controller/Helper/GetModels.pm +++ b/SL/Controller/Helper/GetModels.pm @@ -16,8 +16,6 @@ sub register_get_models_handlers { $only = [ $only ] if !ref $only; my %hook_params = @{ $only } ? ( only => $only ) : (); - $class->run_before(sub { $_[0]->{PRIV()} = { current_action => $_[1] }; }, %hook_params); - my $handlers = _registered_handlers($class); map { push @{ $handlers->{$_} }, $additional_handlers{$_} if $additional_handlers{$_} } keys %$handlers; } @@ -41,7 +39,7 @@ sub get_models_url_params { sub get_callback { my ($self, %override_params) = @_; - my %default_params = _run_handlers($self, 'callback', action => ($self->{PRIV()} || {})->{current_action}); + my %default_params = _run_handlers($self, 'callback', action => $self->action_name); return $self->url_for(%default_params, %override_params); } -- 2.20.1