diff --git a/htdocs/bom/class/api_boms.class.php b/htdocs/bom/class/api_boms.class.php index 8c6895ff9ae..c907b12f54f 100644 --- a/htdocs/bom/class/api_boms.class.php +++ b/htdocs/bom/class/api_boms.class.php @@ -376,7 +376,9 @@ class Boms extends DolibarrApi $request_data->position, $request_data->fk_bom_child, $request_data->import_key, - $request_data->fk_unit + $request_data->fk_unit, + $request_data->array_options, + $request_data->fk_default_workstation ); if ($updateRes > 0) { @@ -425,7 +427,9 @@ class Boms extends DolibarrApi $request_data->efficiency, $request_data->position, $request_data->import_key, - $request_data->fk_unit + $request_data->fk_unit, + $request_data->array_options, + $request_data->fk_default_workstation ); if ($updateRes > 0) { diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 2e5009addd8..099a74e947a 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -4249,8 +4249,8 @@ abstract class CommonObject $sourceid = (!empty($sourceid) ? $sourceid : $this->id); $targetid = (!empty($targetid) ? $targetid : $this->id); - $sourcetype = (!empty($sourcetype) ? $sourcetype : $this->element); - $targettype = (!empty($targettype) ? $targettype : $this->element); + $sourcetype = (!empty($sourcetype) ? $sourcetype : $this->getElementType()); + $targettype = (!empty($targettype) ? $targettype : $this->getElementType()); /*if (empty($sourceid) && empty($targetid)) { diff --git a/htdocs/product/class/api_products.class.php b/htdocs/product/class/api_products.class.php index 848edad49bd..351ce3256fb 100644 --- a/htdocs/product/class/api_products.class.php +++ b/htdocs/product/class/api_products.class.php @@ -806,7 +806,7 @@ class Products extends DolibarrApi * @param int $availability Product availability * @param string $ref_fourn Supplier ref * @param float $tva_tx New VAT Rate (For example 8.5. Should not be a string) - * @param string|float $charges costs affering to product + * @param float $charges costs affering to product * @param float $remise_percent Discount regarding qty (percent) * @param float $remise Discount regarding qty (amount) * @param int $newnpr Set NPR or not diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index 15614c538a2..f7d70a6d473 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -321,7 +321,7 @@ class Thirdparties extends DolibarrApi $this->company->setNoEmail($this->company->no_email); } - if ($this->company->update($id, DolibarrApiAccess::$user, 1, '', '', 'update', 1) > 0) { + if ($this->company->update($id, DolibarrApiAccess::$user, 1, 1, 1, 'update', 1) > 0) { return $this->get($id); } else { throw new RestException(500, $this->company->error);