* * fields can be * - mantis_bug_table columns (ex: project_id, status) * - customField id prefixed with 'custom_' (ex: custom_23) * - CodevTT fields prefixed with 'codevtt_' (ex: codevtt_commands) * * if $fieldList == NULL, delete IssueTooltip custo for this project * * @param array $fieldList * @param int $teamid * @param int $userid */ public function setIssueTooltipFields($fieldList = NULL, $teamid = 0, $userid = 0) { if (!is_null($fieldList)) { $serialized = serialize($fieldList); Config::setValue('issue_tooltip_fields', $serialized, Config::configType_string, 'fields to be displayed in issue tooltip', $this->id, $userid, $teamid); $key = 'team' . $teamid . '_user' . $userid; if (is_null($this->issueTooltipFieldsCache)) { $this->issueTooltipFieldsCache = array(); } $this->issueTooltipFieldsCache[$key] = $fieldList; } else { // if $fieldList NULL, remove issueTooltip custo fot this project Config::deleteValue(Config::id_issueTooltipFields, array($userid, $this->id, $teamid, 0, 0, 0)); unset($this->issueTooltipFieldsCache[$key]); } } } Project::staticInit();