From 979e370787601d33ea3a6793bcd7cdb46e90dece Mon Sep 17 00:00:00 2001 From: mattf Date: Tue, 30 Mar 2021 20:35:47 +0000 Subject: [PATCH] Added ability to use custom_fields_copy on update_list on a deleted list_id in the Non-Agent API git-svn-id: svn://192.168.202.10@3412 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/docs/NON-AGENT_API.txt | 3 ++- agc_2-X/trunk/www/vicidial/non_agent_api.php | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/agc_2-X/trunk/docs/NON-AGENT_API.txt b/agc_2-X/trunk/docs/NON-AGENT_API.txt index a398b3a4..f7f34021 100644 --- a/agc_2-X/trunk/docs/NON-AGENT_API.txt +++ b/agc_2-X/trunk/docs/NON-AGENT_API.txt @@ -1,4 +1,4 @@ -NON-AGENT API DOCUMENT Started: 2008-07-24 Updated: 2021-03-25 +NON-AGENT API DOCUMENT Started: 2008-07-24 Updated: 2021-03-30 This document describes the functions of an API(Application Programming Interface) for all functions NOT directly relating to the VICIDIAL Agent screen. @@ -182,6 +182,7 @@ Changes: 210320-2127 - Added 'custom_fields_add' option for update_list function 210322-1218 - Added display of bad wav file formats on sounds_list function 210325-2042 - Added more data output fields to agent_stats_export function +210330-1633 - Added ability to use custom_fields_copy on update_list on a deleted list_id API Functions use the 'function' variable diff --git a/agc_2-X/trunk/www/vicidial/non_agent_api.php b/agc_2-X/trunk/www/vicidial/non_agent_api.php index ff6225a9..ee7be6f7 100644 --- a/agc_2-X/trunk/www/vicidial/non_agent_api.php +++ b/agc_2-X/trunk/www/vicidial/non_agent_api.php @@ -172,10 +172,11 @@ # 210325-2042 - Added more data output fields to agent_stats_export function # 210328-2140 - Added more variable filtering # 210329-2016 - Fixed for consistent custom fields values filtering +# 210330-1633 - Added ability to use custom_fields_copy on update_list on a deleted list_id # -$version = '2.14-149'; -$build = '210329-2016'; +$version = '2.14-150'; +$build = '210330-1633'; $api_url_log = 0; $startMS = microtime(); @@ -5246,7 +5247,7 @@ if ($function == 'update_list') $rslt=mysql_to_mysqli($stmt, $link); $row=mysqli_fetch_row($rslt); $list_exists=$row[0]; - if ( ($list_exists < 1) and ($custom_fields_add != 'Y') ) + if ( ($list_exists < 1) and ($custom_fields_add != 'Y') and ( (strlen($custom_fields_copy) < 1) or (strlen($custom_fields_copy) > 14) ) ) { if ($insert_if_not_found == 'Y') {