Bug 41997

Summary: Default suggester is not passed by the suggestion creation form
Product: Koha Reporter: Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski>
Component: AcquisitionsAssignee: Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski>
Status: Needs Signoff --- QA Contact: Jonathan Druart <jonathan.druart>
Severity: normal    
Priority: P5 - low CC: jonathan.druart
Version: MainKeywords: regression
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 39721    
Bug Blocks:    
Attachments: Bug 41997: Submit properly default suggester in suggestion.tt

Description Baptiste Wojtkowski (bwoj) 2026-03-05 12:27:18 UTC
Steps to reproduce, only on main.
1 - Open a form creation suggestion. 
2 - With code explorer, notice that there is: <input type="hidden" id="suggestedby" name="suggestedby" value="" /> in the code
3 - Apply patch
4 - With code explorer, notice that there is: <input type="hidden" id="suggestedby" name="suggestedby" value="51" /> in the code
5 - Submit form, notice the suggester is properly written
Comment 1 Baptiste Wojtkowski (bwoj) 2026-03-05 12:29:15 UTC
Created attachment 194499 [details] [review]
Bug 41997: Submit properly default suggester in suggestion.tt

Steps to reproduce, only on main.
1 - Open a form creation suggestion.
2 - With code explorer, notice that there is: <input type="hidden" id="suggestedby" name="suggestedby" value="" /> in the code
3 - Apply patch
4 - With code explorer, notice that there is: <input type="hidden" id="suggestedby" name="suggestedby" value="51" /> in the code
5 - Submit form, notice the suggester is properly written
Comment 2 Owen Leonard 2026-03-05 17:44:14 UTC
I notice that there is also a hidden borrowernumber input at the top of the form. Is that redundant?