diff --git a/htdocs/adherents/class/api_subscriptions.class.php b/htdocs/adherents/class/api_subscriptions.class.php index 6d27ba72dea..a689a35a0a6 100644 --- a/htdocs/adherents/class/api_subscriptions.class.php +++ b/htdocs/adherents/class/api_subscriptions.class.php @@ -202,7 +202,7 @@ class Subscriptions extends DolibarrApi } continue; } - $subscription->$field = $this->_checkValForAPI($field, $val, $subscription); + $subscription->$field = $this->_checkValForAPI($field, $value, $subscription); } if ($subscription->update(DolibarrApiAccess::$user) > 0) { diff --git a/htdocs/expedition/class/api_shipments.class.php b/htdocs/expedition/class/api_shipments.class.php index b5995eed7ac..1cdd859004f 100644 --- a/htdocs/expedition/class/api_shipments.class.php +++ b/htdocs/expedition/class/api_shipments.class.php @@ -463,7 +463,7 @@ class Shipments extends DolibarrApi } continue; } - $this->shipment->$field = $this->_checkValForAPI($field, $val, $this->shipment);; + $this->shipment->$field = $this->_checkValForAPI($field, $value, $this->shipment);; } if ($this->shipment->update(DolibarrApiAccess::$user) > 0) { diff --git a/htdocs/projet/class/api_tasks.class.php b/htdocs/projet/class/api_tasks.class.php index 353615ba887..49382685edd 100644 --- a/htdocs/projet/class/api_tasks.class.php +++ b/htdocs/projet/class/api_tasks.class.php @@ -478,7 +478,7 @@ class Tasks extends DolibarrApi } continue; } - $this->task->$field = $this->_checkValForAPI($field, $val, $this->task); + $this->task->$field = $this->_checkValForAPI($field, $value, $this->task); } if ($this->task->update(DolibarrApiAccess::$user) > 0) { diff --git a/htdocs/reception/class/api_receptions.class.php b/htdocs/reception/class/api_receptions.class.php index 5eeece76d81..c05e5ca477e 100644 --- a/htdocs/reception/class/api_receptions.class.php +++ b/htdocs/reception/class/api_receptions.class.php @@ -464,7 +464,7 @@ class Receptions extends DolibarrApi } continue; } - $this->reception->$field = $this->_checkValForAPI($field, $val, $this->reception); + $this->reception->$field = $this->_checkValForAPI($field, $value, $this->reception); } if ($this->reception->update(DolibarrApiAccess::$user) > 0) {