fix inconsistency in list_name required length
git-svn-id: svn://192.168.202.10@3799 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -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
|
This document describes the functions of an API(Application Programming
|
||||||
Interface) for all functions NOT directly relating to the VICIDIAL Agent screen.
|
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-
|
REQUIRED FIELDS-
|
||||||
list_id - 2-14 digits
|
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
|
campaign_id - 2-8 characters, must be a valid campaign_id
|
||||||
|
|
||||||
OPTIONAL FIELDS-
|
OPTIONAL FIELDS-
|
||||||
|
|||||||
@@ -7711,7 +7711,7 @@ if ($function == 'add_list')
|
|||||||
}
|
}
|
||||||
else
|
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 = 'ERROR';
|
||||||
$result_reason = "add_list YOU MUST USE ALL REQUIRED FIELDS";
|
$result_reason = "add_list YOU MUST USE ALL REQUIRED FIELDS";
|
||||||
|
|||||||
Reference in New Issue
Block a user