Skip to content

Commit

Permalink
FIX #8285 Extrafields now reported by /api/index.php/agendaevents/{id}
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 11, 2018
1 parent 5c4b5cc commit a3d25b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/comm/action/class/api_agendaevents.class.php
Expand Up @@ -80,6 +80,8 @@ function get($id)
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
}

$result = $this->actioncomm->fetch_optionals();

$this->actioncomm->fetchObjectLinked();
return $this->_cleanObjectDatas($this->actioncomm);
}
Expand Down Expand Up @@ -319,7 +321,6 @@ function _cleanObjectDatas($object) {

unset($object->usermod);
unset($object->libelle);
unset($object->array_options);
unset($object->context);
unset($object->canvas);
unset($object->contact);
Expand Down

0 comments on commit a3d25b2

Please sign in to comment.