| @@ -275,12 +275,19 @@ | ||
| 275 | 275 | if ( ! $action->get_executed_events() ) { |
| 276 | 276 | continue; |
| 277 | 277 | } |
| 278 | 278 | foreach ( $action->get_executed_events() as $on_event ) { |
| 279 | + $action_name = ''; | |
| 280 | + | |
| 281 | + if ( isset( $action->editor_name ) && is_string( $action->editor_name ) ) { | |
| 282 | + $action_name = trim( $action->editor_name ); | |
| 283 | + } | |
| 284 | + | |
| 279 | 285 | $actions[] = array( |
| 280 | 286 | 'record_id' => $this->record_id, |
| 281 | 287 | 'action_slug' => $action->get_id(), |
| 282 | 288 | 'action_id' => $action->_id, |
| 289 | + 'action_name' => $action_name ? $action_name : $action->get_name(), | |
| 283 | 290 | 'on_event' => $on_event, |
| 284 | 291 | 'status' => $status, |
| 285 | 292 | ); |
| 286 | 293 | } |