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) {
This commit is contained in:
parent
5b90302bf8
commit
7126ff7b1f
@ -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");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user