noi-techpark / it.bz.opendatahub.databrowser

Explore and navigate through Open Data you need to build your next service.
https://databrowser.opendatahub.com
GNU Affero General Public License v3.0
8 stars 7 forks source link

Bug: in the PDF uploader it should be not possible to deactivate all languages #461

Closed sseppi closed 4 months ago

sseppi commented 7 months ago

To reproduce the problem, you can go through the following steps:

  1. Open an EventShort record (example: https://v2-beta.databrowser.opendatahub.com/dataset/edit/tourism/v1/EventShort/eventshort-11378)
  2. Click on files
  3. Add a new file
  4. Select all languages
  5. Deselect all languages

By doing that, all languages gets deselected but once the user saves the file get saved in the language where the user has started the file upload. This is confusing the user.

A possible solution could be that if the user deselects all languages, only the one where the uploaded has been started stays active.