-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
editor: fix patron editor #443
Conversation
In the patron editor, if the current edited patron doesn't have the 'patron' role, we need to remove all informations linked to this profile (mainly the default expiration_date set in `preprocessRecordEditor` function). Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
bb59378
to
4e86f30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem reside in the "preprocessRecordEditor" function. Do not make a clear on the "postprocessRecordEditor". Transfer the code into "postprocessRecordEditor" and add "expiration_date" if the patron exists.
We can't do that because, in the editor we would like to display a default expiration date. If we move the default expiration date creation in the "postprocessRecordEditor", the field should be empty for user. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit message approved.
In the patron editor, if the current edited patron doesn't have the
'patron' role, we need to remove all informations linked to this
profile (mainly the default expiration_date set in
preprocessRecordEditor
function).Co-Authored-by: Renaud Michotte renaud.michotte@gmail.com
Code review check list