fix(cdr): pass filter parameters as payload object in apiCall
This commit is contained in:
1 parent
7c28a237ba
commit
21a88440c3
3 files changed
+7
-8
No files matched your search
+5
-5
@@ -2281,11 +2281,11 @@ try {
|
||||
case 'get_cdr':
|
||||
Auth::requireAuth();
|
||||
$filters = [
|
||||
'limit' => (int)($_GET['limit'] ?? $payload['limit'] ?? 100),
|
||||
'direction' => (string)($_GET['direction'] ?? $payload['direction'] ?? 'all'),
|
||||
'disposition' => (string)($_GET['disposition'] ?? $payload['disposition'] ?? 'all'),
|
||||
'period' => (string)($_GET['period'] ?? $payload['period'] ?? 'all'),
|
||||
'search' => (string)($_GET['search'] ?? $payload['search'] ?? ''),
|
||||
'limit' => (int)($payload['limit'] ?? $_GET['limit'] ?? 100),
|
||||
'direction' => (string)($payload['direction'] ?? $_GET['direction'] ?? 'all'),
|
||||
'disposition' => (string)($payload['disposition'] ?? $_GET['disposition'] ?? 'all'),
|
||||
'period' => (string)($payload['period'] ?? $_GET['period'] ?? 'all'),
|
||||
'search' => (string)($payload['search'] ?? $_GET['search'] ?? ''),
|
||||
];
|
||||
$cdrData = CdrManager::getCalls($db, $filters);
|
||||
echo json_encode([
|
||||
|
||||
Reference in new issue
Block a user