function getLinkURL() { global $CFG_GLPI; if (!isset($this->fields['id'])) { return ''; } $link = $this->getFormURLWithID($this->getID()); $link .= $this->isTemplate() ? "&withtemplate=1" : ""; return $link; }