Clean code
This commit is contained in:
parent
d1da2aa8ac
commit
75abbc819b
@ -752,7 +752,7 @@ class Expedition extends CommonObject
|
||||
|
||||
//var_dump($this->lines[$i]);
|
||||
$mouvS = new MouvementStock($this->db);
|
||||
//$mouvS->origin = dol_clone($this, 1);
|
||||
|
||||
$mouvS->setOrigin($this->element, $this->id);
|
||||
|
||||
if (empty($obj->edbrowid)) {
|
||||
|
||||
@ -354,7 +354,7 @@ class Products extends DolibarrApi
|
||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
||||
}
|
||||
|
||||
$oldproduct = dol_clone($this->product, 0);
|
||||
$oldproduct = dol_clone($this->product);
|
||||
|
||||
foreach ($request_data as $field => $value) {
|
||||
if ($field == 'id') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user