# Zones marquees MODIF dans : ticket/class/api_tickets.class (13.12.2025 06.29).php # Fichier actif correspondant : ticket/class/api_tickets.class.php ... 38 | ); 39 | 40 | /** 41 | * @var array $FIELDS_MESSAGES Mandatory fields, checked when create and update object 42 | */ 43 | public static $FIELDS_MESSAGES = array( 44 | // MODIF PICHINOV JOSE 'track_id', 45 | 'id', 46 | 'message' 47 | ); 48 | 49 | /** 50 | * @var Ticket $ticket {@type Ticket} 51 | */ 52 | public $ticket; ... 340 | $result = $this->_validateMessage($request_data); 341 | 342 | foreach ($request_data as $field => $value) { 343 | $this->ticket->$field = $value; 344 | } 345 | $ticketMessageText = $this->ticket->message; 346 | // MODIF PICHINOV JOSE $result = $this->ticket->fetch('', '', $this->ticket->track_id); 347 | // error_log("ticket ID".print_r($this->ticket->id,1),1,"jose.martinez@pichinov.com" ); 348 | 349 | $result = $this->ticket->fetch($this->ticket->id, '', ''); 350 | if (!$result) { 351 | throw new RestException(404, 'Ticket not found'); 352 | } 353 | $this->ticket->message = $ticketMessageText; 354 | if (!$this->ticket->createTicketMessage(DolibarrApiAccess::$user)) {