actually do bulk actions from CLI
This commit is contained in:
		
							parent
							
								
									7cf5c2a28c
								
							
						
					
					
						commit
						9d704183c7
					
				| @ -104,11 +104,11 @@ class BulkActions extends Extension | |||||||
|             if (count($event->args) < 2) { |             if (count($event->args) < 2) { | ||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
|             $query = $event->args[0]; |             $action = $event->args[0]; | ||||||
|             $items = $this->yield_search_results($event->args[1]); |             $query = $event->args[1]; | ||||||
|             $newEvent = new BulkActionEvent($event->args[0], $items); |             $items = $this->yield_search_results($query); | ||||||
|             var_dump($newEvent); |             log_info("bulk_actions", "Performing $action on {$event->args[1]}"); | ||||||
|             # send_event($newEvent);
 |             send_event(new BulkActionEvent($event->args[0], $items)); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user