small fix for pause code submissions issue that is very rare
git-svn-id: svn://192.168.202.10@1398 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -6473,7 +6473,7 @@ if ($ACTION == 'PauseCodeSubmit')
|
||||
### if this is the first pause code entry in a pause session, simply update and log to queue_log
|
||||
if ($stage < 1)
|
||||
{
|
||||
$stmt="UPDATE vicidial_agent_log set sub_status=\"$status\" where agent_log_id='$agent_log_id';";
|
||||
$stmt="UPDATE vicidial_agent_log set sub_status=\"$status\" where agent_log_id >= '$agent_log_id' and user='$user' and ( (sub_status is NULL) or (sub_status='') )order by agent_log_id limit 2;";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00175',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
|
||||
Reference in New Issue
Block a user