From af49b42219c6c2fb2f2a52cfb229d37b20b79e84 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Wed, 17 Aug 2016 17:30:55 +0100 Subject: [PATCH] Bug 17141: Call config method to retrieve logdir Incorrect method call is causing runtime error and not retrieving the correct logdir value Change retrieves the value correctly To test: 1) Run edi_cron.pl, notice error 2) Apply patch and run edi_cron.pl again, should work as expected Signed-off-by: Aleisha Amohia Signed-off-by: Jonathan Druart Note: I did not test but changes make sense. Signed-off-by: Kyle M Hall --- misc/cronjobs/edi_cron.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/edi_cron.pl b/misc/cronjobs/edi_cron.pl index a383033fac..c23341ad26 100755 --- a/misc/cronjobs/edi_cron.pl +++ b/misc/cronjobs/edi_cron.pl @@ -36,7 +36,7 @@ use Koha::EDI qw( process_quote process_invoice process_ordrsp); use Koha::Edifact::Transport; use Fcntl qw( :DEFAULT :flock :seek ); -my $logdir = C4::Context->context('logdir'); +my $logdir = C4::Context->config('logdir'); # logging set to trace as this may be what you # want on implementation -- 2.39.5