diff --git a/app/call_flows/call_flows.php b/app/call_flows/call_flows.php index db3a5fa96d..fcb833c753 100644 --- a/app/call_flows/call_flows.php +++ b/app/call_flows/call_flows.php @@ -108,7 +108,7 @@ $sql .= "limit $rows_per_page offset $offset "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); - $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); + $call_flows = $prep_statement->fetchAll(PDO::FETCH_NAMED); unset ($prep_statement, $sql); //alternate the row style @@ -150,6 +150,9 @@ //echo th_order_by('call_flow_alternate_sound', $text['label-call_flow_alternate_sound'], $order_by, $order); //echo th_order_by('call_flow_alternate_app', $text['label-call_flow_alternate_app'], $order_by, $order); //echo th_order_by('call_flow_alternate_data', $text['label-call_flow_alternate_data'], $order_by, $order); + if (permission_exists('call_flow_context')) { + echo th_order_by('call_flow_context', $text['label-call_flow_context'], $order_by, $order); + } echo th_order_by('call_flow_description', $text['label-call_flow_description'], $order_by, $order); echo "