function post_addItem() { CleanFields($this->getTable(), 'sons_cache'); // Add right to current user - Hack to avoid login/logout $_SESSION['glpiactiveentities'][$this->fields['id']] = $this->fields['id']; $_SESSION['glpiactiveentities_string'] .= ",'" . $this->fields['id'] . "'"; }
function post_addItem() { CleanFields($this->getTable(), 'sons_cache'); }