Skip to content

Commit

Permalink
fix: product image move #11067 (#11092)
Browse files Browse the repository at this point in the history
fixes #11067
  • Loading branch information
stephanegigandet authored Dec 10, 2024
1 parent dbdd9c0 commit 30257c1
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions cgi/product_image_move.pl
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@
my $code = normalize_code(single_param('code'));
my $imgids = single_param('imgids');
my $move_to = single_param('move_to_override');
if ($move_to =~ /^(off|obf|opf|opff)$/) {
$move_to .= ':' . $code;
}
elsif ($move_to ne 'trash') {
if ($move_to ne 'trash') {
$move_to = normalize_code($move_to);
}
my $copy_data = single_param('copy_data_override');
Expand Down Expand Up @@ -223,14 +220,6 @@

$response{url} = product_url($move_to);

# URL on another server?
my $server = server_for_product_id($move_to);
if (defined $server) {
my $url = "https://" . $subdomain . "." . $options{other_servers}{$server}{domain} . $response{url};
$url =~ s/\/([a-z]+):([0-9])/\/$2/;
$response{url} = $url;
}

$response{link} = '<a href="' . $response{url} . '">' . $move_to . '</a>';
}

Expand Down

0 comments on commit 30257c1

Please sign in to comment.