2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Made calls, call attempts and cases only created in the one spot

This commit is contained in:
azammitdcarf
2009-02-19 03:38:07 +00:00
parent d346b8f04c
commit cdfb3a2195
6 changed files with 15 additions and 14 deletions

View File

@@ -150,9 +150,9 @@ if (isset($_POST['submit']))
if (isset($_POST['contact_phone']))
{
$contact_phone_id = bigintval($_POST['contact_phone']);
$call_attempt_id = get_call_attempt($operator_id);
$call_attempt_id = get_call_attempt($operator_id,false);
$respondent_id = get_respondent_id($call_attempt_id);
$call_id = get_call($operator_id,$respondent_id,$contact_phone_id);
$call_id = get_call($operator_id,$respondent_id,$contact_phone_id,true);
if ($call_id)
{
if (VOIP_ENABLED)
@@ -206,7 +206,7 @@ if (isset($_POST['submit']))
exit();
}
$call_attempt_id = get_call_attempt($operator_id);
$call_attempt_id = get_call_attempt($operator_id.false);
$case_id = get_case_id($operator_id);
/**