Bug 41373

Summary: Report share with mana not working when language_loop is not true
Product: Koha Reporter: elias.lorgnier <elias.lorgnier>
Component: Mana-kbAssignee: elias.lorgnier <elias.lorgnier>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: alex.arnaud
Version: Main   
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:
Attachments: Bug 41373: Fixing share report to mana not working

Description elias.lorgnier@biblibre.com 2025-12-04 10:29:49 UTC
In the mana-share-report.inc file, there is a condition that is only activated if languages_loop is defined. Inide this condition, the op parameter "cud-share" is defined for the share with mana form. If language_loop is false or undefined, the request has no "op" parameter, and therefor don't work. 

Moving the input tag that defines the op parameter out of the condition fixes the problem.
Comment 1 elias.lorgnier@biblibre.com 2025-12-04 10:39:14 UTC
Created attachment 190149 [details] [review]
Bug 41373: Fixing share report to mana not working

Test plan :
- Ensure the language_loop option is undefined by not having traducted languages (default on ktd test instance)
- Try to share a report to mana