[Bug Report] Malfunction when updating volume description
Describe the bug When updating the description of a volume, a new description is created instead for a different language.
To Reproduce Steps to reproduce the behavior:
- Go to a volume editing page (e.g., https://manager-preprod.episciences.org/epijinfo/volume/edit?id=21)
- Click on the pencil in the blue box of an existing description.
- Edit the text in the box that appears
- Submit the form, and then go back to the same volume editing page
- There is now a new description with the new text, but flagged as the description in French. The old description remains intact, with the original language.
When repeating the steps above on a volume that has both English and French descriptions, a new description is created for the language "0".
Expected behavior The description in the language being changed should be updated.
Browser and Operating System (please complete the following information):
- OS: Linux
- Browser: Firefox
- Version: 132.0.2
Additional context
The name field of the textarea being created to edit the description does not seem to be populated correctly by the UI. In the steps described above, the name field becomes description[fr], or description[] if both French and English descriptions are available. Editing this field in the debugger to description[en] correctly updates the English-language description.
The fix created for the volumes needs to be applied to sections
Thanks for the bug report, the fix has been pushed with other updates: https://github.com/CCSDForge/episciences/milestone/9
see v1.0.52 - 2025-08-28 https://github.com/CCSDForge/episciences/blob/main/CHANGELOG.md