Merge pull request #24616 from VMR-Global-Solutions/patch-1
Update api_receptions.class.php
This commit is contained in:
commit
038add3a61
@ -709,7 +709,7 @@ class Receptions extends DolibarrApi
|
|||||||
private function _validate($data)
|
private function _validate($data)
|
||||||
{
|
{
|
||||||
$reception = array();
|
$reception = array();
|
||||||
foreach (Shipments::$FIELDS as $field) {
|
foreach (Receptions::$FIELDS as $field) {
|
||||||
if (!isset($data[$field])) {
|
if (!isset($data[$field])) {
|
||||||
throw new RestException(400, "$field field missing");
|
throw new RestException(400, "$field field missing");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user