Kayako logo
Now Implemented (V3) Feature requests that have been implemented.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 333
Join Date: Feb 2007
Location: Lyon, France
Bug? + Fix > Chat status online when department private - 26-07-2007, 09:32 AM

This is a bug that i have, i don't know if this is a real bug, can anyone here confirm?

Here is the problem:
1) i have 3 departments for the live support (general, tech, commercial)
2) tech and commercial are set to PRIVATE, general to PUBLIC
3) when there's no staff in general connected, but 1 in tech the status on the client side is "online"
4) they click on chat but they see: general(offline)... so they can't go on.
The purpose of my general department is to filter the request and forward them to the good staff.
So the status on the client side should be offline when the online departments are all private

If this isn't a configuration bug here is my fix:

in modules/livesupport/functions_livesupport.php
find near line 257 (in function isStaffMonitorOnline($departmentid) )
PHP Code:
$dbCore->query("SELECT staff.staffid, staff.groupassigns, staffgroup.staffgroupid, sessions.status FROM `"TABLE_PREFIX ."sessions` AS sessions LEFT JOIN `"TABLE_PREFIX ."staff` AS staff ON (sessions.typeid = staff.staffid) LEFT JOIN `"TABLE_PREFIX ."staffgroup` AS staffgroup ON (staff.staffgroupid = staffgroup.staffgroupid) WHERE sessions.sessiontype IN('"SESSION_WINAPP ."', '"SESSION_MONITOR ."') and sessions.lastactivity >= '". (DATENOW-180) ."';"); 
replace by
PHP Code:
    $departmentsstatus=getDepartmentsStatus(null);
    foreach (
$departmentsstatus["online"] AS $value)
    {
        
$departmentsstatuslive[]=$value["departmentid"];
    } 
    
$dbCore->query("SELECT staff.staffid, staff.groupassigns, staffgroup.staffgroupid, sessions.status FROM `"TABLE_PREFIX ."sessions` AS sessions LEFT JOIN `"TABLE_PREFIX ."staff` AS staff ON (sessions.typeid = staff.staffid) LEFT JOIN `"TABLE_PREFIX ."staffgroup` AS staffgroup ON (staff.staffgroupid = staffgroup.staffgroupid) LEFT JOIN `"TABLE_PREFIX ."staffassigns` AS staffassigns ON (staff.staffid=staffassigns.staffid) WHERE sessions.sessiontype IN('"SESSION_WINAPP ."', '"SESSION_MONITOR ."') and sessions.lastactivity >= '". (DATENOW-180) ."' AND staffassigns.departmentid IN (".buildIN($departmentsstatuslive).");"); 


Antoine "Sheep" BERMON
-- I left kayako's community: do NOT contact me for job offers, thx --

Last edited by Sheep; 26-07-2007 at 09:59 AM.
   
Reply With Quote
  (#2) Old
Jamie Edwards Online
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,122
Join Date: Jan 2006
Location: United Kingdom
26-07-2007, 10:20 AM

Hi Antione,

This has already been found and fixed - thanks for your sharp eye and also posting the fix!


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
  • New to the forum? New user's guide here.
  • Submit bug reports here.
  • Submit support tickets via the members area.
  • Submit sales queries either via live chat or via e-mail.
  • There is no official ETA on Version 4.
   
Reply With Quote
Reply

Tags
>, bug, chat, department, fix, online, private, status

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug: Link Status With Department NC Software SupportSuite, eSupport and LiveResponse 12 31-01-2008 10:58 PM
LiveSupport WCA Online, LS Icon Online but Chat request = offline! gremlin LiveResponse Desktop Application 3 21-03-2007 09:31 AM
New Build: 3.10.02 STABLE Ryan Lederman News and Announcements 0 05-03-2007 09:53 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46