From 89531ffbc39aee11754f4100c06a97aea489b17e Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Wed, 17 Aug 2016 17:30:55 +0100 Subject: [PATCH] [SIGNED-OFF] 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 --- 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 a383033..c23341a 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.1.4