Bad chmod for directory when changing ref

When changing product ref, the old document directory is renamed and chmod 0664 in place of 0775
This commit is contained in:
Frédéric FRANCE 2015-10-14 20:13:14 +02:00
parent e9aed15bed
commit f4cbc81c97

View File

@ -766,7 +766,7 @@ class Product extends CommonObject
if (file_exists($olddir))
{
include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
$res=dol_move($olddir, $newdir);
$res = dol_move($olddir, $newdir, '0775');
if (! $res)
{
$this->error='ErrorFailToMoveDir';