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, julian.maurice
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:
Bug Depends on:    
Bug Blocks: 40885    
Attachments: Bug 41373: Fixing share report to mana not working
Bug 41373: Fixing share report to mana not working
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
Comment 2 elias.lorgnier@biblibre.com 2026-01-27 15:06:28 UTC
Created attachment 192100 [details] [review]
Bug 41373: Fixing share report to mana not working

Test plan :
- Ensure the language_loop option is undefined by not having translated languages (default on ktd test instance)
- Try to share a report to mana
Comment 3 elias.lorgnier@biblibre.com 2026-01-29 08:51:08 UTC
Created attachment 192140 [details] [review]
Bug 41373: Fixing share report to mana not working

Test plan :
- Ensure the language_loop option is undefined by not having translated languages (default on ktd test instance)
- Clone the mana repo on your machine (from https://gitlab.com/koha-community/koha-mana)
- Add the bin/mana utility to your path
- run `mana up` to launch mana and create a docker network koha will connect to (see how to use the mana utility here : https://gitlab.com/koha-community/koha-mana/-/tree/main/compose?ref_type=heads)
- run `ktd --mana --skip-validation up` to connect koha to mana (compatible with other options)
- create a security token, that will automatically get validated because of the skip-validation option
- Try to share a report to mana (you can check on the UI or the import from mana interface, as there is no visual feedback of if that worked)