Merge pull request #4053 from marcosgdf/bug-3987

FIX #3987 Undefined variable $newref in CommandeFournisseur::approve
This commit is contained in:
Laurent Destailleur 2015-11-25 22:24:56 +01:00
commit 1caf148dc6

View File

@ -765,7 +765,8 @@ class CommandeFournisseur extends CommonOrder
if (! $error)
{
$this->ref=$newref;
$this->ref = $this->newref;
if ($movetoapprovestatus) $this->statut = 2;
else $this->statut = 1;
if (empty($secondlevel)) // standard or first level approval