From 67d5f515f222849215eb6146f0fe7228a9418bd5 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 24 Mar 2016 11:59:12 +0800 Subject: [PATCH] Report/SendEventErrors.php --- Report/SendEventErrors.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Report/SendEventErrors.php b/Report/SendEventErrors.php index f2ba99b..d6f2828 100644 --- a/Report/SendEventErrors.php +++ b/Report/SendEventErrors.php @@ -122,6 +122,14 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo $events->whereAddIn('!Events.action', $exclude, 'string'); } } + if(!empty($this->opts['only'])){ + $only= array_unique(array_filter(array_map('trim', explode(',', $this->opts['only'])))); + + if(!empty($only)){ + $events->whereAddIn('Events.action', $only, 'string'); + } + } + $events->groupBy('Events.action'); $events->orderBy('Events.action ASC'); -- 2.39.2