From 4bdde9ad56108ff5ef57cb3074dffc6247394676 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 19 Oct 2018 12:51:14 +0200 Subject: [PATCH] Update ticketlogs.class.php --- htdocs/ticket/class/ticketlogs.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/ticket/class/ticketlogs.class.php b/htdocs/ticket/class/ticketlogs.class.php index 68ce6481b31..66cecd6eb5e 100644 --- a/htdocs/ticket/class/ticketlogs.class.php +++ b/htdocs/ticket/class/ticketlogs.class.php @@ -352,10 +352,12 @@ class Ticketlogs// extends CommonObject */ public function initAsSpecimen() { + global $user; + $this->id = 0; $this->fk_track_id = ''; - $this->fk_user_create = 1; + $this->fk_user_create = $user->id; $this->datec = ''; $this->message = ''; }