From 928328f2b03a2f0e980eb374755747c0a8253203 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Wed, 27 Aug 2014 13:28:01 +0000 Subject: [PATCH] Set default value for Thread's agent ID when a thread is created --- src/mibew/libs/chat.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mibew/libs/chat.php b/src/mibew/libs/chat.php index 03bcbca2..6094a509 100644 --- a/src/mibew/libs/chat.php +++ b/src/mibew/libs/chat.php @@ -748,6 +748,7 @@ function chat_start_for_user( // Create thread $thread = Thread::create(); $thread->state = Thread::STATE_LOADING; + $thread->agentId = 0; if ($requested_operator && $requested_operator_online) { $thread->nextAgent = $requested_operator['operatorid']; }