Koha/koha-tmpl/intranet-tmpl/prog/js/pages
Pedro Amorim d9aef9163f
Bug 36521: Checkbox preferences should be allowed to be submitted empty
Visit:
http://localhost:8081/cgi-bin/koha/admin/preferences.pl?tab=i18n_l10n

Uncheck English on both 'language' and 'OPACLanguages'. Save.
Notice "Nothing to save" shows.
Apply patch. Repeat. Notice you can now save with all options empty.

To my knowledge, these 2 language preferences are the only checkbox preferences of this kind (correct me
if I'm wrong please).

I need to add a new system preference for bug 35604 listing all installed ILL backends so the user
may enable or disable each of the backends.
I want that particular system preference to be disabled as a whole if all backends are unchecked, but I was unable
to uncheck all before this patch.

I understand that for languages checkboxes specifically not allowing everything to be empty may make sense (at least
one language should be enabled, after all). But these languages checkbox preferences should be the exception, not the rule,
for this behaviour.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-04-05 11:51:11 +02:00
..
addbiblio.js
batchMod.js Bug 34913: DataTables upgrade: Update CSS and option names 2024-01-26 15:13:40 +01:00
circulation.js Bug 32730: Add Patron Lists tab to patron details and circulation pages 2023-11-01 17:23:09 -03:00
preferences.js Bug 36521: Checkbox preferences should be allowed to be submitted empty 2024-04-05 11:51:11 +02:00
results.js Bug 34478: SQUASH further changes to batch biblio operations 2024-03-01 11:00:03 +01:00
stockrotation.js Bug 34913: DataTables upgrade: Update CSS and option names 2024-01-26 15:13:40 +01:00
tags-review.js Bug 34478: Add 'op' to tags/review 2024-03-01 10:58:25 +01:00