X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ac86ce0822fb544d3080509343bdbcbb3eb6009a..7447778283539ba5f36a43c97fcea3bc4f551729:/SL/Controller/CustomerVendor.pm diff --git a/SL/Controller/CustomerVendor.pm b/SL/Controller/CustomerVendor.pm index 1002a2e25..da4b7c9d5 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); } @@ -371,7 +375,7 @@ sub action_search_contact { my $url = 'ct.pl?action=search_contact&db=customer'; if ( $::form->{callback} ) { - $url .= '&callback='. $::from->escape($::form->{callback}); + $url .= '&callback='. $::form->escape($::form->{callback}); } print $::form->redirect_header($url);