@@ -, +, @@ message_prefs_dirty to true one set in step 1. default patron category to set messaging prefs to the category default the default for that category Notice that there should be no change to the patron messaging prefs. no warning and the message prefs should be proberly set to the defaults of any category you choose. --- koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js | 4 ++++ 1 file changed, 4 insertions(+) --- a/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js +++ a/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js @@ -6,6 +6,10 @@ $(document).ready(function(){ message_prefs_dirty = true; }); + if ( window.location.href.indexOf("op=add") === -1 ) { + message_prefs_dirty = true; // unless op=add consider the message prefs dirty + } + if( $("#messaging_prefs_loading").length ){ // This element only appears in the template if op=add $('#categorycode_entry').change(function() { var messaging_prefs_loading = $("#messaging_prefs_loading"); --