From: Thomas Heck Date: Tue, 13 Aug 2013 13:15:46 +0000 (+0200) Subject: CustomerVendor: redirect über Controller::redirect_to X-Git-Tag: release-3.1.0beta1~86 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a42d2de5269914431ed763e5c5a1868a5547ed83;p=kivitendo-erp.git CustomerVendor: redirect über Controller::redirect_to --- diff --git a/SL/Controller/CustomerVendor.pm b/SL/Controller/CustomerVendor.pm index 1002a2e25..440269461 100644 --- a/SL/Controller/CustomerVendor.pm +++ b/SL/Controller/CustomerVendor.pm @@ -355,13 +355,17 @@ sub action_delete_shipto { sub action_search { my ($self) = @_; - my $url = 'ct.pl?action=search&db='. ($self->is_vendor() ? 'vendor' : 'customer'); + my @url_params = ( + controller => 'ct.pl', + action => 'search', + db => $self->is_vendor() ? 'vendor' : 'customer', + ); if ( $::form->{callback} ) { - $url .= '&callback='. $::from->escape($::form->{callback}); + push(@url_params, callback => $::form->{callback}); } - print $::form->redirect_header($url); + $self->redirect_to(@url_params); }