function post_addItem() { global $DB, $CFG_GLPI; // Manage add from template if (isset($this->input["_oldID"])) { ProjectCost::cloneProject($this->input["_oldID"], $this->fields['id']); } if ($CFG_GLPI["use_mailing"]) { // Clean reload of the project $this->getFromDB($this->fields['id']); NotificationEvent::raiseEvent('new', $this); } }