Fix standardize 'createfromclone' param when cloning

This commit is contained in:
Laurent Destailleur
2019-01-19 12:46:38 +01:00
parent b3cbbc1b11
commit 2bbaae88d6
40 changed files with 84 additions and 60 deletions

View File

@@ -1066,8 +1066,6 @@ class Commande extends CommonOrder
$error=0;
$this->context['createfromclone'] = 'createfromclone';
$this->db->begin();
// get lines so they will be clone
@@ -1108,6 +1106,7 @@ class Commande extends CommonOrder
$this->ref_client = '';
// Create clone
$this->context['createfromclone'] = 'createfromclone';
$result=$this->create($user);
if ($result < 0) $error++;