Bug 39251

Summary: Link to purchase suggestion needs &op=show added to the URL to work fully
Product: Koha Reporter: Ray Delahunty <r.delahunty>
Component: ReportsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Ray Delahunty 2025-03-05 14:31:07 UTC
To compose the link to a specific suggestion so that clicking on it takes the user right into the suggestion, it is necessary to add &op=show to the end of the url (as in cgi-bin/koha/suggestion/suggestion.pl?suggestionid=5&op=show). This is unlike any other id-based url I know (as in cgi-bin/koha/catalogue/detail.pl?biblionumber=1658434 for example).
As SHOW is an SQL keyword, writing the CONCAT statement was tricky, but this worked: [...]suggestionid=', suggestionid, '&op=',CONCAT('sh','ow').
Ideally the link would work like other id-based urls in Koha, and not need the 'show' string added.