Report/SendEventErrors.php
authorAlan Knowles <alan@roojs.com>
Thu, 24 Mar 2016 03:59:12 +0000 (11:59 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 Mar 2016 03:59:12 +0000 (11:59 +0800)
Report/SendEventErrors.php

index f2ba99b..d6f2828 100644 (file)
@@ -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');