Fix: Bad ref used into notification message

This commit is contained in:
Laurent Destailleur
2015-04-01 11:30:48 +02:00
parent 5fe5ec939d
commit 293495467f
2 changed files with 20 additions and 18 deletions

View File

@@ -109,7 +109,7 @@ class Commande extends CommonOrder
// Pour board
var $nbtodo;
var $nbtodolate;
/**
* ERR Not engouch stock
*/
@@ -299,7 +299,7 @@ class Commande extends CommonOrder
// Rename directory if dir was a temporary ref
if (preg_match('/^[\(]?PROV/i', $this->ref))
{
// On renomme repertoire ($this->ref = ancienne ref, $numfa = nouvelle ref)
// On renomme repertoire ($this->ref = ancienne ref, $num = nouvelle ref)
// in order not to lose the attachments
$oldref = dol_sanitizeFileName($this->ref);
$newref = dol_sanitizeFileName($num);