fix: correct get_template method call signature in bulk manager
This commit is contained in:
parent
5af94e8a14
commit
5c02c9e495
1 changed files with 2 additions and 2 deletions
|
|
@ -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'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue