From 3164c5d64e84096924d7406bfc1bb4f39e06e4ca Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 29 Nov 2023 19:17:11 +0000 Subject: [PATCH] 'SQL/x' variable bug fix in callbacks bulk move script git-svn-id: svn://192.168.202.10@3784 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/vicidial/callbacks_bulk_move.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/www/vicidial/callbacks_bulk_move.php b/www/vicidial/callbacks_bulk_move.php index 457f39f4..8bdc9af8 100644 --- a/www/vicidial/callbacks_bulk_move.php +++ b/www/vicidial/callbacks_bulk_move.php @@ -11,6 +11,7 @@ # 180508-0115 - Added new help display # 191013-0853 - Fixes for PHP7 # 220224-1656 - Added allow_web_debug system setting +# 231129-1404 - 'SQL/x' variable bug fix # require("dbconnect_mysqli.php"); @@ -585,7 +586,7 @@ if ($SUBMIT && $new_list_id && ($new_status || $revert_status)) { $cb_users[$i] = preg_replace('/[^-_0-9\p{L}]/u', '', $cb_users[$i]); $usersQS.="&cb_users[]=".$cb_users[$i]; - if ($i > 0) {$usersSQL.="','";} + if ($i > 0) {$usersSQLx.="','";} $usersSQLx.="$cb_users[$i]"; } $usersSQL=" and vc.user in ('".$usersSQLx."') "; @@ -616,7 +617,7 @@ if ($SUBMIT && $new_list_id && ($new_status || $revert_status)) { $cb_user_groups[$i] = preg_replace('/[^-_0-9\p{L}]/u', '', $cb_user_groups[$i]); $user_groupsQS.="&cb_user_groups[]=".$cb_user_groups[$i]; - if ($i > 0) {$user_groupsSQL.="','";} + if ($i > 0) {$user_groupsSQLx.="','";} $user_groupsSQLx.="$cb_user_groups[$i]"; } $user_groupsSQL=" and vc.user_group in ('".$user_groupsSQLx."') "; @@ -656,7 +657,7 @@ if ($SUBMIT && $new_list_id && ($new_status || $revert_status)) { $cb_lists[$i] = preg_replace('/[^-_0-9\p{L}]/u', '', $cb_lists[$i]); $listsQS.="&cb_lists[]=".$cb_lists[$i]; - if ($i > 0) {$listsSQL.="','";} + if ($i > 0) {$listsSQLx.="','";} $listsSQLx.="$cb_lists[$i]"; } $listsSQL=" and vc.list_id in ('".$listsSQLx."') "; @@ -687,7 +688,7 @@ if ($SUBMIT && $new_list_id && ($new_status || $revert_status)) { $cb_groups[$i] = preg_replace('/[^-_0-9\p{L}]/u', '', $cb_groups[$i]); $groupsQS.="&cb_groups[]=".$cb_groups[$i]; - if ($i > 0) {$groupsSQL.="','";} + if ($i > 0) {$groupsSQLx.="','";} $groupsSQLx.="$cb_groups[$i]"; } $groupsSQL=" and vc.campaign_id in ('".$groupsSQLx."') ";