Skip to content
Snippets Groups Projects
Commit de1db57a authored by Laurent Destailleur's avatar Laurent Destailleur Committed by GitHub
Browse files

Merge pull request #6883 from dvasseur/develop

FIX: REST API not possible to add agendaevents
parents d19a8929 3898cfe0
No related branches found
No related tags found
No related merge requests found
...@@ -290,7 +290,7 @@ class AgendaEvents extends DolibarrApi ...@@ -290,7 +290,7 @@ class AgendaEvents extends DolibarrApi
function _validate($data) function _validate($data)
{ {
$event = array(); $event = array();
foreach (Events::$FIELDS as $field) { foreach (AgendaEvents::$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");
$event[$field] = $data[$field]; $event[$field] = $data[$field];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment