Merge pull request #24616 from VMR-Global-Solutions/patch-1

Update api_receptions.class.php
This commit is contained in:
Laurent Destailleur 2023-04-27 16:21:29 +02:00 committed by GitHub
commit 038add3a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
}