mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Fixed error with adding a contact phone without a description
This commit is contained in:
@@ -564,16 +564,16 @@ function get_case_id($operator_id, $create = false)
|
|||||||
{
|
{
|
||||||
$tnum = preg_replace("/[^0-9]/", "",$r5v['phone']);
|
$tnum = preg_replace("/[^0-9]/", "",$r5v['phone']);
|
||||||
if (empty($tnum)) $tnum = "312345678"; //handle error condition
|
if (empty($tnum)) $tnum = "312345678"; //handle error condition
|
||||||
$sql = "INSERT INTO contact_phone (case_id,priority,phone)
|
$sql = "INSERT INTO contact_phone (case_id,priority,phone,description)
|
||||||
VALUES ($case_id,$i,$tnum)";
|
VALUES ($case_id,$i,$tnum,'')";
|
||||||
$db->Execute($sql);
|
$db->Execute($sql);
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$sql = "INSERT INTO contact_phone (case_id,priority,phone)
|
$sql = "INSERT INTO contact_phone (case_id,priority,phone,description)
|
||||||
VALUES ($case_id,1,312345678)";
|
VALUES ($case_id,1,312345678,'test only')";
|
||||||
$db->Execute($sql);
|
$db->Execute($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user