From 53c1672b9f2e47a7a5f907807d3a4812829d3e97 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 19 Sep 2012 14:16:39 +0200 Subject: [PATCH] Fix: Blank page when renaming product ref --- htdocs/product/class/product.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 2a5324da295..3fdc72816d1 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -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) {