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.
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
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
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)