Skip to content

Commit

Permalink
Fix : script to migrate photo path
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-maxime committed Jul 9, 2017
1 parent b461d24 commit f166c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/product/migrate_picture_path.php
Expand Up @@ -104,7 +104,7 @@ function migrate_product_photospath($product)
global $conf;

$dir = $conf->product->multidir_output[$product->entity];
$origin = $dir .'/'. get_exdir($product->id,2) . $product->id ."/photos";
$origin = $dir .'/'. get_exdir($product->id,2,0,0,$product,'product') . $product->id ."/photos";
$destin = $dir.'/'.dol_sanitizeFileName($product->ref);

$error = 0;
Expand Down

0 comments on commit f166c96

Please sign in to comment.