From 5c02c9e4955d3ce3c1da950c0047b556f65a04b3 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 24 Sep 2025 23:49:18 -0300 Subject: [PATCH] fix: correct get_template method call signature in bulk manager --- includes/class-hvac-bulk-event-manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-hvac-bulk-event-manager.php b/includes/class-hvac-bulk-event-manager.php index f3bf5f18..1b13c3fd 100644 --- a/includes/class-hvac-bulk-event-manager.php +++ b/includes/class-hvac-bulk-event-manager.php @@ -175,7 +175,7 @@ class HVAC_Bulk_Event_Manager { public function create_bulk_events_from_template(int $template_id, array $variations, int $user_id): array { try { // Validate template access - $template = $this->template_manager->get_template($template_id, $user_id); + $template = $this->template_manager->get_template($template_id); if (!$template || !isset($template['template_data'])) { return $this->error_response(__('Template not found or access denied', 'hvac-community-events')); } @@ -238,7 +238,7 @@ class HVAC_Bulk_Event_Manager { public function apply_template_to_events(int $template_id, array $event_ids, int $user_id, array $options = []): array { try { // Validate template access - $template = $this->template_manager->get_template($template_id, $user_id); + $template = $this->template_manager->get_template($template_id); if (!$template) { return $this->error_response(__('Template not found or access denied', 'hvac-community-events')); }