Fix bug with redicection user to a group

This commit is contained in:
Dmitriy Simushev 2013-01-28 11:30:24 +00:00
parent 1ecda26d3d
commit 2a656a58d5
2 changed files with 3 additions and 2 deletions

View File

@ -46,7 +46,8 @@ if (isset($_GET['nextGroup'])) {
$thread->nextAgent = 0; $thread->nextAgent = 0;
$thread->groupId = $nextid; $thread->groupId = $nextid;
$thread->agentId = 0; $thread->agentId = 0;
$thread->agentName = "''"; $thread->agentName = '';
$thread->save();
$thread->postMessage( $thread->postMessage(
Thread::KIND_EVENTS, Thread::KIND_EVENTS,

View File

@ -149,7 +149,7 @@ function print_pending_threads($groupids, $since)
$thread = Thread::createFromDbInfo($row); $thread = Thread::createFromDbInfo($row);
$thread_info = array( $thread_info = array(
'thread' => $thread, 'thread' => $thread,
'groupName' => $row['groupname'] 'groupname' => $row['groupname']
); );
$thread_as_xml = thread_to_xml($thread_info); $thread_as_xml = thread_to_xml($thread_info);
$output[] = $thread_as_xml; $output[] = $thread_as_xml;