From b168101a60e062a2280d176e01fbb2e43fa9080c Mon Sep 17 00:00:00 2001 From: Robin Sheat Date: Wed, 19 Nov 2014 17:06:57 +1300 Subject: [PATCH] Bug 11998 - remove logging from places where it shouldn't be This prevents duplicate action_log entries when a preference is updated. --- admin/preferences.pl | 1 - misc/admin/koha-preferences | 1 - svc/config/systempreferences | 2 -- 3 files changed, 4 deletions(-) diff --git a/admin/preferences.pl b/admin/preferences.pl index a6b4776..be64be1 100755 --- a/admin/preferences.pl +++ b/admin/preferences.pl @@ -305,7 +305,6 @@ if ( $op eq 'save' ) { my $value = join( ',', $input->param( $param ) ); C4::Context->set_preference( $pref, $value ); - logaction( 'SYSTEMPREFERENCE', 'MODIFY', undef, $pref . " | " . $value ); } } diff --git a/misc/admin/koha-preferences b/misc/admin/koha-preferences index 6728609..d8317ab 100755 --- a/misc/admin/koha-preferences +++ b/misc/admin/koha-preferences @@ -82,7 +82,6 @@ sub _set_preference { _debug( "Setting $preference to $value" ); C4::Context->set_preference( $preference, $value ); - logaction( 'SYSTEMPREFERENCE', 'MODIFY', undef, $preference . " | " . $value ); } sub GetPreferences { diff --git a/svc/config/systempreferences b/svc/config/systempreferences index deeca51..e0322ba 100755 --- a/svc/config/systempreferences +++ b/svc/config/systempreferences @@ -64,7 +64,6 @@ sub set_preference { unless ( C4::Context->config('demo') ) { my $value = join( ',', $query->param( 'value' ) ); C4::Context->set_preference( $preference, $value ); - logaction( 'SYSTEMPREFERENCE', 'MODIFY', undef, $preference . " | " . $value ); } C4::Service->return_success( $response ); @@ -98,7 +97,6 @@ sub set_preferences { my $value = join( ',', $query->param( $param ) ); C4::Context->set_preference( $pref, $value ); - logaction( 'SYSTEMPREFERENCE', 'MODIFY', undef, $pref . " | " . $value ); } } -- 2.1.0