From d1a31671d727e3f64243b6cbf2cf80bf1228925f Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Wed, 3 Apr 2013 22:42:52 +0000 Subject: [PATCH] Fixed error with adding a contact phone without a description --- functions/functions.operator.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/functions.operator.php b/functions/functions.operator.php index d854af02..5b321dd1 100644 --- a/functions/functions.operator.php +++ b/functions/functions.operator.php @@ -564,16 +564,16 @@ function get_case_id($operator_id, $create = false) { $tnum = preg_replace("/[^0-9]/", "",$r5v['phone']); if (empty($tnum)) $tnum = "312345678"; //handle error condition - $sql = "INSERT INTO contact_phone (case_id,priority,phone) - VALUES ($case_id,$i,$tnum)"; + $sql = "INSERT INTO contact_phone (case_id,priority,phone,description) + VALUES ($case_id,$i,$tnum,'')"; $db->Execute($sql); $i++; } } else { - $sql = "INSERT INTO contact_phone (case_id,priority,phone) - VALUES ($case_id,1,312345678)"; + $sql = "INSERT INTO contact_phone (case_id,priority,phone,description) + VALUES ($case_id,1,312345678,'test only')"; $db->Execute($sql); }