Fix missing ip
This commit is contained in:
parent
2d0b855de7
commit
51f52feda6
@ -213,6 +213,11 @@ class Ticket extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public $email_date;
|
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)
|
* @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_last_msg_sent,";
|
||||||
$sql .= " t.date_close,";
|
$sql .= " t.date_close,";
|
||||||
$sql .= " t.tms,";
|
$sql .= " t.tms,";
|
||||||
|
$sql .= " t.ip,";
|
||||||
$sql .= " type.label as type_label, category.label as category_label, severity.label as severity_label";
|
$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 .= " FROM ".MAIN_DB_PREFIX."ticket as t";
|
||||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."c_ticket_type as type ON type.code=t.type_code";
|
$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->email_date = $this->db->jdate($obj->email_date);
|
||||||
$this->subject = $obj->subject;
|
$this->subject = $obj->subject;
|
||||||
$this->message = $obj->message;
|
$this->message = $obj->message;
|
||||||
|
$this->ip = $obj->ip;
|
||||||
|
|
||||||
$this->status = $obj->status;
|
$this->status = $obj->status;
|
||||||
$this->fk_statut = $this->status; // For backward compatibility
|
$this->fk_statut = $this->status; // For backward compatibility
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user