mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Removed $false's
Made sure to end call attempts and calls when a case is ended
This commit is contained in:
@@ -818,7 +818,7 @@ function get_call($operator_id,$respondent_id = "",$contact_phone_id = "")
|
|||||||
if ($db->CompleteTrans())
|
if ($db->CompleteTrans())
|
||||||
return $id;
|
return $id;
|
||||||
|
|
||||||
return $false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -973,6 +973,12 @@ function end_case($operator_id)
|
|||||||
|
|
||||||
if ($case_id)
|
if ($case_id)
|
||||||
{
|
{
|
||||||
|
//End all calls (with not attempted or worked if there is a call);
|
||||||
|
end_call($operator_id,1);
|
||||||
|
|
||||||
|
//Make sure to end call attempts
|
||||||
|
end_call_attempt($operator_id);
|
||||||
|
|
||||||
//determine current final outcome code
|
//determine current final outcome code
|
||||||
//Look over all calls, for each phone number that is to be tried again
|
//Look over all calls, for each phone number that is to be tried again
|
||||||
//Calculate outcome based on
|
//Calculate outcome based on
|
||||||
@@ -1143,7 +1149,7 @@ function end_call_attempt($operator_id)
|
|||||||
if ($db->CompleteTrans())
|
if ($db->CompleteTrans())
|
||||||
return $return;
|
return $return;
|
||||||
|
|
||||||
return $false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user