Skip to content

Commit

Permalink
NEW enable put for agendaevents api
Browse files Browse the repository at this point in the history
  • Loading branch information
kadogo committed Jan 29, 2020
1 parent d255e3b commit 9874169
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions htdocs/comm/action/class/api_agendaevents.class.php
Expand Up @@ -229,7 +229,6 @@ public function post($request_data = null)
*
* @return int
*/
/*
public function put($id, $request_data = null)
{
if (! DolibarrApiAccess::$user->rights->agenda->myactions->create) {
Expand Down Expand Up @@ -257,12 +256,11 @@ public function put($id, $request_data = null)
$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
Expand Down

0 comments on commit 9874169

Please sign in to comment.