From 7ff7dd017542c32a8f8111167fda69857de50910 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 5 May 2015 10:31:16 +0200 Subject: [PATCH] GetModels: get_callback_params MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit liefert statt der fertigen URL die parameter für Controller::url_for --- SL/Controller/Helper/GetModels.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SL/Controller/Helper/GetModels.pm b/SL/Controller/Helper/GetModels.pm index 9d406460d..861834b83 100644 --- a/SL/Controller/Helper/GetModels.pm +++ b/SL/Controller/Helper/GetModels.pm @@ -157,10 +157,16 @@ sub get_models_url_params { $self->register_handlers('callback' => $callback); } -sub get_callback { +sub get_callback_params { my ($self, %override_params) = @_; my %default_params = $self->_run_handlers('callback', action => $self->controller->action_name); +} + +sub get_callback { + my ($self, %override_params) = @_; + + my %default_params = $self->get_callback_params(%override_params); return $self->controller->url_for(%default_params, %override_params); } -- 2.20.1