X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ac86ce0822fb544d3080509343bdbcbb3eb6009a..14de4f7cc44ebf65b4e68c95c3638c3e9d94df7c:/SL/Controller/CustomerVendor.pm 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); }