Fix: Blank page when renaming product ref

This commit is contained in:
Laurent Destailleur 2012-09-19 14:16:39 +02:00
parent 8b13f2ab81
commit 53c1672b9f

View File

@ -518,6 +518,7 @@ class Product extends CommonObject
$newdir = $conf->product->dir_output . "/" . dol_sanitizeFileName($this->ref);
if (file_exists($olddir))
{
include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
$res=@dol_move($olddir, $newdir);
if (! $res)
{