From: Thomas Heck Date: Mon, 15 Jul 2013 15:54:56 +0000 (+0200) Subject: CustomerVendor: Umleitungs-URL mit url_for erzeugen X-Git-Tag: release-3.1.0beta1~161^2~13 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=989f4a1185232677777b4d53527235fddc06f5c8;p=kivitendo-erp.git CustomerVendor: Umleitungs-URL mit url_for erzeugen --- diff --git a/SL/Controller/CustomerVendor.pm b/SL/Controller/CustomerVendor.pm index e22677556..b5afd02d6 100644 --- a/SL/Controller/CustomerVendor.pm +++ b/SL/Controller/CustomerVendor.pm @@ -170,14 +170,15 @@ sub _transaction { my $name = $::form->escape($self->{cv}->name, 1); my $db = $self->is_vendor() ? 'vendor' : 'customer'; - my $url = - $script .'?'. - 'action=add&'. - 'vc='. $db .'&'. - $db .'_id=' . $self->{cv}->id .'&'. - $db .'='. $name .'&'. - 'type='. $::form->{type} .'&'. - 'callback='. $callback; + my $url = $self->url_for( + controller => $script, + action => 'add', + vc => $db, + $db .'_id' => $self->{cv}->id, + $db => $name, + type => $::form->{type}, + callback => $callback, + ); print $::form->redirect_header($url); }