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:
parent
e9aed15bed
commit
f4cbc81c97
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user