From c014129ef297660a336afc6391541d5f4b8fc252 Mon Sep 17 00:00:00 2001 From: jsinagowitz Date: Mon, 6 Jan 2025 13:07:27 +0100 Subject: [PATCH 1/2] Fixed module check for calendar plugin --- Kernel/System/Calendar/Plugin.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kernel/System/Calendar/Plugin.pm b/Kernel/System/Calendar/Plugin.pm index ea53a308922..56b856910c8 100644 --- a/Kernel/System/Calendar/Plugin.pm +++ b/Kernel/System/Calendar/Plugin.pm @@ -152,9 +152,10 @@ sub PluginFunction { } my $PluginObject = $Self->{Plugins}->{ $Param{PluginKey} }->{Object}; + my $PluginModule = $Self->{Plugins}->{ $Param{PluginKey} }->{Module}; my $PluginFunction = $Param{PluginFunction}; - if ( $MainObject->Require( $PluginObject, Silent => 1 ) ) { + if ( !$MainObject->Require( $PluginModule, Silent => 1 ) ) { $LogObject->Log( Priority => 'error', Message => "Sorry, can't load $PluginObject!", From 458219de4e9cbeeadc32eb0a531b93177c9c9264 Mon Sep 17 00:00:00 2001 From: jsinagowitz Date: Mon, 6 Jan 2025 13:50:14 +0100 Subject: [PATCH 2/2] Fixed error output --- Kernel/System/Calendar/Plugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/System/Calendar/Plugin.pm b/Kernel/System/Calendar/Plugin.pm index 56b856910c8..524ad478fdb 100644 --- a/Kernel/System/Calendar/Plugin.pm +++ b/Kernel/System/Calendar/Plugin.pm @@ -158,7 +158,7 @@ sub PluginFunction { if ( !$MainObject->Require( $PluginModule, Silent => 1 ) ) { $LogObject->Log( Priority => 'error', - Message => "Sorry, can't load $PluginObject!", + Message => "Sorry, can't load $PluginModule!", ); return; }