From: Sven Schöling Date: Tue, 5 May 2015 08:31:16 +0000 (+0200) Subject: GetModels: get_callback_params X-Git-Tag: release-3.3.0beta~105 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7ff7dd017542c32a8f8111167fda69857de50910;p=kivitendo-erp.git GetModels: get_callback_params liefert statt der fertigen URL die parameter für Controller::url_for --- 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); }