Bugzilla – Attachment 125886 Details for
Bug 29138
LoadSearchHistoryToTheFirstLoggedUser should save 0 instead of "no"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29138: Use zero instead of no in LoadSearchHistoryToTheFirstLoggedUser
Bug-29138-Use-zero-instead-of-no-in-LoadSearchHist.patch (text/plain), 2.30 KB, created by
Andrew Fuerste-Henry
on 2021-10-07 14:17:21 UTC
(
hide
)
Description:
Bug 29138: Use zero instead of no in LoadSearchHistoryToTheFirstLoggedUser
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2021-10-07 14:17:21 UTC
Size:
2.30 KB
patch
obsolete
>From 4d9a02651b5888f4eb4414452713cf164fbe9eca Mon Sep 17 00:00:00 2001 >From: Andrew Fuerste-Henry <andrew@bywatersolutions.com> >Date: Wed, 29 Sep 2021 19:24:13 +0000 >Subject: [PATCH] Bug 29138: Use zero instead of no in > LoadSearchHistoryToTheFirstLoggedUser > >To test: >- apply patch >- set LoadSearchHistoryToTheFirstLoggedUser to 'Don't add' >- confirm via sql that value=0 >- confirm on OPAC that search history is not loaded to account on login > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > installer/data/mysql/atomicupdate/Bug_29138.pl | 17 +++++++++++++++++ > .../en/modules/admin/preferences/searching.pref | 2 +- > 2 files changed, 18 insertions(+), 1 deletion(-) > create mode 100755 installer/data/mysql/atomicupdate/Bug_29138.pl > >diff --git a/installer/data/mysql/atomicupdate/Bug_29138.pl b/installer/data/mysql/atomicupdate/Bug_29138.pl >new file mode 100755 >index 0000000000..731099f8ac >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/Bug_29138.pl >@@ -0,0 +1,17 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "29138", >+ description => "Use a zero instead of a no in LoadSearchHistoryToTheFirstLoggedUser", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ # Do you stuffs here >+ $dbh->do(q{ >+ UPDATE systempreferences SET value= IF(value='no',0,1) >+ WHERE variable = 'LoadSearchHistoryToTheFirstLoggedUser'; >+ }); >+ # Print useful stuff here >+ say $out "LoadSearchHistoryToTheFirstLoggedUser updated"; >+ }, >+} >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >index 1130c2cf29..ee43066b2b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >@@ -93,7 +93,7 @@ Searching: > default: 0 > choices: > 1: "Add" >- no : "Don't add" >+ 0: "Don't add" > - search history of the unlogged user to the next patron logging in. > - > - Show tabs in the OPAC and staff interface advanced search for limiting searches on the >-- >2.20.1
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 29138
:
125462
|
125717
|
125856
|
125886
|
125922
|
125923
|
125924
|
125925
|
125992