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

fixed wrong translation argument for outcomes in callhistory.php;

fixed translate_array not working for associative arrays;
This commit is contained in:
Alex
2015-11-12 15:52:58 +02:00
parent 7722f138ea
commit 7901ecc6cc
2 changed files with 3 additions and 5 deletions

View File

@@ -121,8 +121,6 @@ function sample_call_attempt_report($questionnaire_id = false, $sample_id = fals
$outcomes = $db->GetAssoc($sql);
translate_array($outcomes,array("description"));
$rep = array("callattempts","sample");
$rept = array(T_("Call attempts made"),T_("Number of cases"));
$totals = array("sample");
@@ -132,7 +130,7 @@ function sample_call_attempt_report($questionnaire_id = false, $sample_id = fals
foreach($outcomes as $key => $val)
{
$rep[] = $key;
$rept[] = $val;
$rept[] = T_($val);
$outcomesfilled[$key] = 0;
}