@@ -, +, @@
- Test the OPACSuggestionMandatoryFields preference. In the modal,
"title" should be checked and the label in red. It should not be
possible to uncheck the checkbox.
- Test that the "Select all" and "Clear all" links don't affect the
"title" checkbox.
- Confirm that your selections are still saved correctly.
- Test the OPACSuggestionUnwantedFields preference. In the modal,
"title" should be unchecked and disabled.
- Test that the "Select all" and "Clear all" links don't affect the
"title" checkbox.
- Confirm that your selections are saved correctly.
---
admin/preferences.pl | 1 +
.../prog/en/modules/admin/preferences.tt | 2 +-
.../en/modules/admin/preferences/opac.pref | 2 ++
.../admin/preferences/suggestions.json | 1 +
.../prog/js/pages/preferences.js | 18 +++++++++++---
.../bootstrap/en/modules/opac-suggestions.tt | 24 +++++++++----------
6 files changed, 32 insertions(+), 16 deletions(-)
--- a/admin/preferences.pl
+++ a/admin/preferences.pl
@@ -62,6 +62,7 @@ sub _get_chunk {
if( $options{'type'} && $options{'type'} eq 'modalselect' ){
$chunk->{'source'} = $options{'source'};
$chunk->{'exclusions'} = $options{'exclusions'} // "";
+ $chunk->{'required'} = $options{'required'} // "";
$chunk->{'type'} = 'modalselect';
}
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt
@@ -130,7 +130,7 @@
[% END %]
[% ELSIF ( CHUNK.type_modalselect ) %]
-
+
[% ELSIF ( CHUNK.type_multiple ) %]