Merge pull request #12967 from kadogo/enable-put-for-api-agendaevents

NEW enable put for agendaevents api
This commit is contained in:
Laurent Destailleur 2020-01-29 22:55:26 +01:00 committed by GitHub
commit 8cc51821ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,7 +229,6 @@ class AgendaEvents extends DolibarrApi
*
* @return int
*/
/*
public function put($id, $request_data = null)
{
if (! DolibarrApiAccess::$user->rights->agenda->myactions->create) {
@ -257,12 +256,11 @@ class AgendaEvents extends DolibarrApi
$this->actioncomm->$field = $value;
}
if ($this->actioncomm->update($id, DolibarrApiAccess::$user,1,'','','update'))
if ($this->actioncomm->update(DolibarrApiAccess::$user, 1) > 0)
return $this->get($id);
return false;
}
*/
/**
* Delete Agenda Event