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

FIX: REST API not possible to add agendaevents

parent 96b8339d
No related branches found
No related tags found
No related merge requests found
......@@ -289,7 +289,7 @@ class AgendaEvents extends DolibarrApi
function _validate($data)
{
$event = array();
foreach (Events::$FIELDS as $field) {
foreach (AgendaEvents::$FIELDS as $field) {
if (!isset($data[$field]))
throw new RestException(400, "$field field missing");
$event[$field] = $data[$field];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment