From 51f52feda6b2123642edcbe403421805c605ee47 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 17 Mar 2023 21:09:43 +0100 Subject: [PATCH] Fix missing ip --- htdocs/ticket/class/ticket.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index ec696db0ed6..7f7b6a03e0d 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -213,6 +213,11 @@ class Ticket extends CommonObject */ public $email_date; + /** + * @var string IP address + */ + public $ip; + /** * @var Ticket $oldcopy State of this ticket as it was stored before an update operation (for triggers) */ @@ -605,6 +610,7 @@ class Ticket extends CommonObject $sql .= " t.date_last_msg_sent,"; $sql .= " t.date_close,"; $sql .= " t.tms,"; + $sql .= " t.ip,"; $sql .= " type.label as type_label, category.label as category_label, severity.label as severity_label"; $sql .= " FROM ".MAIN_DB_PREFIX."ticket as t"; $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."c_ticket_type as type ON type.code=t.type_code"; @@ -644,6 +650,7 @@ class Ticket extends CommonObject $this->email_date = $this->db->jdate($obj->email_date); $this->subject = $obj->subject; $this->message = $obj->message; + $this->ip = $obj->ip; $this->status = $obj->status; $this->fk_statut = $this->status; // For backward compatibility