Revision 6fdffcc7
Von Thomas Heck vor mehr als 11 Jahren hinzugefügt
SL/Controller/CustomerVendor.pm | ||
---|---|---|
170 | 170 |
my $name = $::form->escape($self->{cv}->name, 1); |
171 | 171 |
my $db = $self->is_vendor() ? 'vendor' : 'customer'; |
172 | 172 |
|
173 |
my $url = |
|
174 |
$script .'?'. |
|
175 |
'action=add&'. |
|
176 |
'vc='. $db .'&'. |
|
177 |
$db .'_id=' . $self->{cv}->id .'&'. |
|
178 |
$db .'='. $name .'&'. |
|
179 |
'type='. $::form->{type} .'&'. |
|
180 |
'callback='. $callback; |
|
173 |
my $url = $self->url_for( |
|
174 |
controller => $script, |
|
175 |
action => 'add', |
|
176 |
vc => $db, |
|
177 |
$db .'_id' => $self->{cv}->id, |
|
178 |
$db => $name, |
|
179 |
type => $::form->{type}, |
|
180 |
callback => $callback, |
|
181 |
); |
|
181 | 182 |
|
182 | 183 |
print $::form->redirect_header($url); |
183 | 184 |
} |
Auch abrufbar als: Unified diff
CustomerVendor: Umleitungs-URL mit url_for erzeugen