From 3e4a361310b23b12ab5d049b06e09bdd30736a2b Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 17 Jan 2024 01:55:53 +0000 Subject: [PATCH] fix inconsistency in list_name required length git-svn-id: svn://192.168.202.10@3799 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/docs/NON-AGENT_API.txt | 4 ++-- agc_2-X/trunk/www/vicidial/non_agent_api.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agc_2-X/trunk/docs/NON-AGENT_API.txt b/agc_2-X/trunk/docs/NON-AGENT_API.txt index f3025d72..fdb10f77 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: 2024-01-05 +NON-AGENT API DOCUMENT Started: 2008-07-24 Updated: 2024-01-16 This document describes the functions of an API(Application Programming Interface) for all functions NOT directly relating to the VICIDIAL Agent screen. @@ -1846,7 +1846,7 @@ NOTE: api user for this function must have user_level set to 8 or higher and "mo REQUIRED FIELDS- list_id - 2-14 digits -list_name - 6-30 characters +list_name - 2-30 characters campaign_id - 2-8 characters, must be a valid campaign_id OPTIONAL FIELDS- 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 dc74632f..a8f9c368 100644 --- a/agc_2-X/trunk/www/vicidial/non_agent_api.php +++ b/agc_2-X/trunk/www/vicidial/non_agent_api.php @@ -7711,7 +7711,7 @@ if ($function == 'add_list') } else { - if ( (strlen($list_id)<2) or (strlen($list_id)>14) or (strlen($campaign_id)<1) or (strlen($campaign_id)>8) or (strlen($list_name)<6) or (strlen($list_name)>30) ) + if ( (strlen($list_id)<2) or (strlen($list_id)>14) or (strlen($campaign_id)<1) or (strlen($campaign_id)>8) or (strlen($list_name)<2) or (strlen($list_name)>30) ) { $result = 'ERROR'; $result_reason = "add_list YOU MUST USE ALL REQUIRED FIELDS";