On the patron edit form, under the "Patron messaging preferences" there's a message stating: "If no preferences are selected, the default preferences for the category chosen will be applied on save, otherwise your selection here is saved" When no preferences are selected the default preferences for the chose category are not being applied on save. As an enhancement a button could be added to reset the messaging preferences to default.
Note that the message appears in a couple of situations: On patron edit, or on patron creation *if* you have your AddPatronLists preference set to "category_type." Looking at the code it looks like the message is intended to appear only upon patron add if AddPatronLists is set to "category_type." The warning is required because in that situation the patron category is not yet known. Therefore the interface reminds the user that default messaging preferences will be applied if none are chosen.
Since I suggested to remove the broken pref AddPatronLists in bug 13497, I think the better would be to simply remove the message.
Created attachment 37577 [details] [review] Bug 9314: Remove useless code related to the type_only parameter Since the pref AddPatronLists has been removed in bug 13497, the code related to type_only and category_type in memberentry.pl is useless. Test plan: Confirm you don't the information message. You can also confirm that the message was wrong and nothing was saved.
Jonathan, following your comments I can confirm that the information message is no longer displayed so this bug report is deprecated.
Rolando, without the path I submitted on comment 3, the message can longer appear.
Created attachment 39314 [details] [review] [SIGNED-OFF] Bug 9314: Remove useless code related to the type_only parameter Since the pref AddPatronLists has been removed in bug 13497, the code related to type_only and category_type in memberentry.pl is useless. Test plan: Confirm you don't the information message. You can also confirm that the message was wrong and nothing was saved. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Dead code removed, no errors Think that bug description can be updated to commit message
Created attachment 39957 [details] [review] [PASSED QA] Bug 9314: Remove useless code related to the type_only parameter Since the pref AddPatronLists has been removed in bug 13497, the code related to type_only and category_type in memberentry.pl is useless. Test plan: Confirm you don't the information message. You can also confirm that the message was wrong and nothing was saved. Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Dead code removed, no errors Think that bug description can be updated to commit message Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Patch pushed to master. Thanks Jonathan!
Pushed to 3.20.x will be in 3.20.1 (shouldn't be needed for other branches)