Fix. Extension summary for local calls (#2918)

This commit is contained in:
Alexey Melnichuk
2017-11-21 19:13:58 +03:00
committed by FusionPBX
parent ebfa022a90
commit 9ee2b71ce2

View File

@@ -870,7 +870,7 @@ if (!class_exists('xml_cdr')) {
$sql .= " OR \n";
$sql .= " c.destination_number = e.number_alias))) \n";
if ($this->include_internal) {
$sql .= " AND (direction = 'inbound' OR 'direction = 'outbound') \n";
$sql .= " AND (direction = 'inbound' OR direction = 'outbound') \n";
}
$sql .= " ) / \n";
$sql .= "COUNT(*) \n";
@@ -886,7 +886,7 @@ if (!class_exists('xml_cdr')) {
$sql .= " OR \n";
$sql .= " c.destination_number = e.number_alias))) \n";
if ($this->include_internal) {
$sql .= " AND (direction = 'inbound' OR 'direction = 'outbound') \n";
$sql .= " AND (direction = 'inbound' OR direction = 'outbound') \n";
}
$sql .= " ) AS aloc, \n";