Merge pull request #8264 from atm-alexis/FIX_migrate_script_product_photo

FIX migration script for product photo
This commit is contained in:
Laurent Destailleur 2018-03-02 18:12:18 +01:00 committed by GitHub
commit 57d6417095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,7 @@ function migrate_product_photospath($product)
global $conf;
$dir = $conf->product->multidir_output[$product->entity];
$conf->global->PRODUCT_USE_OLD_PATH_FOR_PHOTO = 1;
$origin = $dir .'/'. get_exdir($product->id,2,0,0,$product,'product') . $product->id ."/photos";
$destin = $dir.'/'.dol_sanitizeFileName($product->ref);