From 7126ff7b1f2b1f37d149753721f02e0b1da0190e Mon Sep 17 00:00:00 2001 From: VMR Global Solutions Date: Thu, 27 Apr 2023 09:16:17 +0200 Subject: [PATCH] Update api_receptions.class.php Change made in _private function validate in reception/class/api_receptions.class.php:709 replaced line 712 foreach (Shipments::$FIELDS as $field) { => foreach (Receptions::$FIELDS as $field) { --- htdocs/reception/class/api_receptions.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/reception/class/api_receptions.class.php b/htdocs/reception/class/api_receptions.class.php index c9f4cba44cc..b24a8dbef11 100644 --- a/htdocs/reception/class/api_receptions.class.php +++ b/htdocs/reception/class/api_receptions.class.php @@ -709,7 +709,7 @@ class Receptions extends DolibarrApi private function _validate($data) { $reception = array(); - foreach (Shipments::$FIELDS as $field) { + foreach (Receptions::$FIELDS as $field) { if (!isset($data[$field])) { throw new RestException(400, "$field field missing"); }