diff --git a/include/class.ticket.php b/include/class.ticket.php
index 1cb11c7f80f381d7e924b8adaee9ce3eeba245c5..6f171936f1a2f0ce9cca6054bb2fa8799817e545 100644
--- a/include/class.ticket.php
+++ b/include/class.ticket.php
@@ -2520,8 +2520,8 @@ implements RestrictedAccess, Threadable {
         if ($errors)
             return false;
 
-        $this->topic_id = $vars['topic_id'];
-        $this->sla_id = $vars['sla_id'];
+        $this->topic_id = $vars['topicId'];
+        $this->sla_id = $vars['slaId'];
         $this->source = $vars['source'];
         $this->duedate = $vars['duedate']
             ? date('Y-m-d G:i',Misc::dbtime($vars['duedate'].' '.$vars['time']))