[Koha-bugs] [Bug 29138] LoadSearchHistoryToTheFirstLoggedUser should save 0 instead of "no"

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 5 03:38:45 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29138

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david at davidnind.com

--- Comment #3 from David Nind <david at davidnind.com> ---
Testing notes (koha-testing-docker):

1. Check that LoadSearchHistoryToTheFirstLoggedUser is not working as expected
when set to 'Don't add':
   a. Set LoadSearchHistoryToTheFirstLoggedUser to 'Add'
   b. In the OPAC make sure you are logged out
   c. Perform some searches
   d. Check search history is recorded by selecting "Search history" in the
top-right navigation menu
   e. Log in as a user
   f. Check search history recorded (From the top-right navigation menu select
Welcome, [username] > Search history)
   g. Search history should be populated with searches from when not logged in
   h. Select all then select 'Remove selected searches'
   i. Change LoadSearchHistoryToTheFirstLoggedUser to 'Don't add'
   j. Repeat from b-g
   k. Search history will still be shown, even though it should be empty
2. Check database to see what value is recorded:
   a. koha-mysql kohadev
   b. SQL query: select * from systempreferences where
variable='LoadSearchHistoryToTheFirstLoggedUser';
   c. When LoadSearchHistoryToTheFirstLoggedUser is set to 'Don't add' value =
"no" 
3. Apply the patch.
4. Update the database (updatedatabase) and restart services (restart_all)
5. Check value in database again from step 2 - value should now be 0
6. Repeat the steps from 1 - this time it should work as expected, that is:
   . When LoadSearchHistoryToTheFirstLoggedUser is set to 'Don't add'
   . Search history should be empty when you log in
7. Sign-off!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list