Bug 34506 - After deleting record from a search result the link 'Go back to the results' has disappeared
Summary: After deleting record from a search result the link 'Go back to the results' ...
Status: Failed QA
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: 22.11
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Mark Hofstetter
QA Contact: Testopia
URL:
Keywords:
Depends on: 5428
Blocks:
  Show dependency treegraph
 
Reported: 2023-08-09 08:01 UTC by Mark Hofstetter
Modified: 2023-08-17 07:54 UTC (History)
2 users (show)

See Also:
Change sponsored?: Sponsored
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 34506: After deleting record from a search result the link 'Go back to the results' has disappeared (2.04 KB, patch)
2023-08-11 09:06 UTC, Mark Hofstetter
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hofstetter 2023-08-09 08:01:33 UTC
As was implemented in 

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

the link 'Go back to the results' seems to have disappeared

to test:

1. make a search in the staff interface eg "perl"
2. chose a record
3. delete it (maybe including items)
4. in 21.05 there was a link 'Go back to the results', which is no present in 21.11.06

thx 
mark
Comment 1 Mark Hofstetter 2023-08-11 09:06:23 UTC
Created attachment 154359 [details] [review]
Bug 34506: After deleting record from a search result the link 'Go back to the results' has disappeared

This patch fixes the regression of
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5428
introduced in 22.11.x

Test plan see https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5428

To test:
0 - Perform a search in the staff client
1 - Click a title to go to the details page for a record
2 - Click the 'Edit' button and select 'Edit items in a batch'
3 - Note the searchid is in the url
4 - Make a change and hit 'Save'
5 - Note the 'Return the the record' link at the top, and the button on the bottom include searchid in URL
6 - Click one and note the brwoser is stil there
7 - Click 'Edit' and select 'Delete items in a batch'
8 - Delete one item
9 - Click return to record
10 - Browser is there
11 - Click 'Delete items in a batch again
12 - Select all and check 'Delete records if no items remain'
13 - Delete them
14 - Note you have a link to 'Go back to the results'

Sponsored-by: Steiermärkische Landesbibliothek
Comment 2 Katrin Fischer 2023-08-17 07:54:01 UTC
We tested this in a sandbox today and in the last step the link remained "Return to the record" and would lead to "The record you requested does not exist (262)" as is to be expected. The link didn't change to "Return to results" as the test plan said.