UXPROD-2389, a default expiration date can be filled in when a new user is created, a user is changed from inactive to active, re-set or, the case here, a patron group is changed.
The default expiartion period for the patron group is either added to the current expiration date or the current date.
In the case of a change of patron group, it should be added to the current date.
Steps to Reproduce:
- Set default expiration date for a patron group X.
- Open a user with a set expiration date.
- Change the patron group
The expiration date should be changed to expiration date = today + expiration period.
It is changed to expiration date = current expiration date + expiration period.
See Uschis comment (https://issues.folio.org/browse/UXPROD-2389?focusedCommentId=116868&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-116868).