Bugzilla – Attachment 169044 Details for
Bug 35630
Add ability to log changes to authorized values
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35630: Add new system preference 'AuthorizedValuesLog'
Bug-35630-Add-new-system-preference-AuthorizedValu.patch (text/plain), 3.21 KB, created by
Roman Dolny
on 2024-07-16 14:50:55 UTC
(
hide
)
Description:
Bug 35630: Add new system preference 'AuthorizedValuesLog'
Filename:
MIME Type:
Creator:
Roman Dolny
Created:
2024-07-16 14:50:55 UTC
Size:
3.21 KB
patch
obsolete
>From 0c3529583b581a3b2d6a161fcd6de04a430eec5e Mon Sep 17 00:00:00 2001 >From: Sam Lau <samalau@gmail.com> >Date: Wed, 10 Jul 2024 14:34:48 +0000 >Subject: [PATCH] Bug 35630: Add new system preference 'AuthorizedValuesLog' > >Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> >--- > .../data/mysql/atomicupdate/bug_35630.pl | 19 +++++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../en/modules/admin/preferences/logs.pref | 6 ++++++ > 3 files changed, 26 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_35630.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_35630.pl b/installer/data/mysql/atomicupdate/bug_35630.pl >new file mode 100755 >index 0000000000..cb7d13f0a2 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_35630.pl >@@ -0,0 +1,19 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "35630", >+ description => "Add AuthorizedValuesLog system preference", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do( >+ q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) >+ VALUES ('AuthorizedValuesLog', '0', 'If enabled, log authorized value changes', '' , 'YesNo') >+ } >+ ); >+ >+ say $out "Added new system preference 'AuthorizedValuesLog'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 94acbe3e1c..9304f2e71f 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -79,6 +79,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('AuthorityXSLTOpacDetailsDisplay','','','Enable XSL stylesheet control over authority details page in the OPAC','Free'), > ('AuthorityXSLTOpacResultsDisplay','','','Enable XSL stylesheet control over authority results page in the OPAC','Free'), > ('AuthorityXSLTResultsDisplay','','','Enable XSL stylesheet control over authority results page display on intranet','Free'), >+('AuthorizedValuesLog', '0', 'If enabled, log authorized value changes', '' , 'YesNo'), > ('AuthorLinkSortBy','default','call_number|pubdate|acqdate|title','Specify the default field used for sorting when click author links','Choice'), > ('AuthorLinkSortOrder','asc','asc|dsc|az|za','Specify the default sort order for author links','Choice'), > ('AuthSuccessLog','0',NULL,'If enabled, log successful authentications','YesNo'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/logs.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/logs.pref >index 985089a9ac..f8b0d625c9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/logs.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/logs.pref >@@ -120,6 +120,12 @@ Logging: > 1: Log > 0: "Don't log" > - any changes to purchase suggestions (create, modify, delete ). >+ - >+ - pref: AuthorizedValuesLog >+ choices: >+ 1: Log >+ 0: "Don't log" >+ - any changes to authorized values (create, modify, delete ). > > Debugging: > - >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35630
:
168747
|
168748
|
169027
| 169044 |
169045
|
169046
|
172629