Bug 23301 - Borrower messaging preferences lost when duplicating patron and changing category
Summary: Borrower messaging preferences lost when duplicating patron and changing cate...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-11 12:38 UTC by Andrew Fuerste-Henry
Modified: 2022-09-23 13:55 UTC (History)
6 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuerste-Henry 2019-07-11 12:38:33 UTC
To test:
- Create a patron and set their messaging preferences to something other than the defaults
- Duplicate the patron
- Note that their messaging preferences have been maintained
- Before saving the new patron, change their category
- Note that their messaging preferences reset to the default for their new category
Comment 1 Karen Fellows 2019-07-11 12:45:05 UTC
When creating cards for a family it is great to use the duplicate feature.  However, when you change categories--for example, adult to juvenile--it resets the messaging preferences to the default, but it keeps all other information from the parent card.  It would be great to have it truly duplicate the card will all messaging preferences.
Comment 2 Katrin Fischer 2020-10-18 17:09:49 UTC
Hm, I think me might not get a clear vote here on if that is intended behaviour or not. I would have expected the messaging defaults to reset when resetting the category, while you expect it to remain unchanged.

I am not sure how we could deal with this the best way. Should we have a pop-up asking about resetting the messaging preferences when the category is changed so it can be decided on an individual basis?
Comment 3 Magnus Enger 2021-01-29 14:02:04 UTC
(In reply to Katrin Fischer from comment #2)
> Hm, I think me might not get a clear vote here on if that is intended
> behaviour or not. I would have expected the messaging defaults to reset when
> resetting the category, while you expect it to remain unchanged.
> 
> I am not sure how we could deal with this the best way. Should we have a
> pop-up asking about resetting the messaging preferences when the category is
> changed so it can be decided on an individual basis?

There is also the update_patrons_category.pl (formerly known as j2a.pl) cronjob - changing categories is not always an interactive process. 
https://git.koha-community.org/Koha-community/Koha/src/branch/master/misc/cronjobs/update_patrons_category.pl
Comment 4 Katrin Fischer 2021-01-31 14:57:35 UTC
(In reply to Magnus Enger from comment #3)
> (In reply to Katrin Fischer from comment #2)
> > Hm, I think me might not get a clear vote here on if that is intended
> > behaviour or not. I would have expected the messaging defaults to reset when
> > resetting the category, while you expect it to remain unchanged.
> > 
> > I am not sure how we could deal with this the best way. Should we have a
> > pop-up asking about resetting the messaging preferences when the category is
> > changed so it can be decided on an individual basis?
> 
> There is also the update_patrons_category.pl (formerly known as j2a.pl)
> cronjob - changing categories is not always an interactive process. 
> https://git.koha-community.org/Koha-community/Koha/src/branch/master/misc/
> cronjobs/update_patrons_category.pl

Good point. We could make it a CLI option there, but it would need to be a hard default.