Bug 42071

Summary: Suggestion does not load when viewing the suggestion
Product: Koha Reporter: Lisette Scheer <lisette>
Component: Architecture, internals, and plumbingAssignee: Lisette Scheer <lisette>
Status: Passed QA --- QA Contact: Pedro Amorim <pedro.amorim>
Severity: major    
Priority: P5 - low CC: david, pedro.amorim
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Crowdfunding committed: 0
Crowdfunding contact: Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
This fixes suggestion details not showing when you click the title in the staff interface suggestions management table. (Related to changes made by Bug 41857 - Suggestions table actions broken (Update manager and Delete selected), added in Koha 26.05.)
Version(s) released in:
Circulation function:
Bug Depends on: 41857    
Bug Blocks: 40504    
Attachments: Bug 42071: Add 'show' to options that load a single suggestion
Bug 42071: Add 'show' to options that load a single suggestion

Description Lisette Scheer 2026-03-11 21:13:00 UTC
Bug 41857 set a single suggestion to load only on edit, so nothing loads when viewing a suggestion.

To recreate:
1. Go to acquisitions
2. Go to Purchase Suggestions
3. Create a purchase suggestion (for ease of testing, select Centerville for the library)
4. On the table, click on the suggestion number
5. Observe the suggestion does not populate, including the breadcrumbs, but the url does contain the suggestion number.
Comment 1 Lisette Scheer 2026-03-11 21:22:35 UTC
Created attachment 195140 [details] [review]
Bug 42071: Add 'show' to options that load a single suggestion

Test plan:

Before applying the patch:
1. Go to acquisitions
2. Go to Purchase Suggestions
3. Create a purchase suggestion (for ease of testing, select Centerville for the library)
4. On the table, click on the suggestion number
5. Observe the suggestion does not populate, including the breadcrumbs, but the url does contain the suggestion number.
6. Apply the patch
7. restart_all
8. Rpeat steps 1-4
9. Observe the suggestion now populates and can be edited.
Comment 2 Pedro Amorim 2026-03-12 04:52:30 UTC
Created attachment 195157 [details] [review]
Bug 42071: Add 'show' to options that load a single suggestion

Test plan:

Before applying the patch:
1. Go to acquisitions
2. Go to Purchase Suggestions
3. Create a purchase suggestion (for ease of testing, select Centerville for the library)
4. On the table, click on the suggestion number
5. Observe the suggestion does not populate, including the breadcrumbs, but the url does contain the suggestion number.
6. Apply the patch
7. restart_all
8. Rpeat steps 1-4
9. Observe the suggestion now populates and can be edited.

Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>