@@ -, +, @@ LoadSearchHistoryToTheFirstLoggedUser - 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 --- 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 --- a/installer/data/mysql/atomicupdate/Bug_29138.pl +++ a/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"; + }, +} --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref +++ a/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 --