Bug 17141: Call config method to retrieve logdir
authorColin Campbell <colin.campbell@ptfs-europe.com>
Wed, 17 Aug 2016 16:30:55 +0000 (17:30 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 2 Sep 2016 15:49:12 +0000 (15:49 +0000)
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 <aleishaamohia@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Note: I did not test but changes make sense.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
misc/cronjobs/edi_cron.pl

index a383033..c23341a 100755 (executable)
@@ -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