From 07819d895d9e5125e82b33a35fca9dce482520a2 Mon Sep 17 00:00:00 2001 From: Naomi Date: Tue, 30 Jul 2013 19:32:31 -0400 Subject: [PATCH] fix added to avoid a blank row in aggregate view --- airtime_mvc/application/services/HistoryService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/airtime_mvc/application/services/HistoryService.php b/airtime_mvc/application/services/HistoryService.php index 0865a001f..e0b354831 100644 --- a/airtime_mvc/application/services/HistoryService.php +++ b/airtime_mvc/application/services/HistoryService.php @@ -141,6 +141,7 @@ USING (history_id) select count(history.file_id) as played, history.file_id as file_id from cc_playout_history as history where history.starts >= '{$start}' and history.starts < '{$end}' + and history.file_id is not NULL group by history.file_id ) AS playout left join cc_files as file on (file.id = playout.file_id)";