Revision a42d2de5
Von Thomas Heck vor etwa 11 Jahren hinzugefügt
SL/Controller/CustomerVendor.pm | ||
---|---|---|
355 | 355 |
sub action_search { |
356 | 356 |
my ($self) = @_; |
357 | 357 |
|
358 |
my $url = 'ct.pl?action=search&db='. ($self->is_vendor() ? 'vendor' : 'customer'); |
|
358 |
my @url_params = ( |
|
359 |
controller => 'ct.pl', |
|
360 |
action => 'search', |
|
361 |
db => $self->is_vendor() ? 'vendor' : 'customer', |
|
362 |
); |
|
359 | 363 |
|
360 | 364 |
if ( $::form->{callback} ) { |
361 |
$url .= '&callback='. $::from->escape($::form->{callback});
|
|
365 |
push(@url_params, callback => $::form->{callback});
|
|
362 | 366 |
} |
363 | 367 |
|
364 |
print $::form->redirect_header($url);
|
|
368 |
$self->redirect_to(@url_params);
|
|
365 | 369 |
} |
366 | 370 |
|
367 | 371 |
|
Auch abrufbar als: Unified diff
CustomerVendor: redirect über Controller::redirect_to