NEW enable put for agendaevents api
This commit is contained in:
parent
f1f83656f1
commit
b2610903a4
@ -229,7 +229,6 @@ class AgendaEvents extends DolibarrApi
|
|||||||
*
|
*
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
/*
|
|
||||||
public function put($id, $request_data = null)
|
public function put($id, $request_data = null)
|
||||||
{
|
{
|
||||||
if (! DolibarrApiAccess::$user->rights->agenda->myactions->create) {
|
if (! DolibarrApiAccess::$user->rights->agenda->myactions->create) {
|
||||||
@ -257,12 +256,11 @@ class AgendaEvents extends DolibarrApi
|
|||||||
$this->actioncomm->$field = $value;
|
$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 $this->get($id);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete Agenda Event
|
* Delete Agenda Event
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user