Skip to content
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

circulation: fix can_extend check method #2040

Merged
merged 1 commit into from
Jun 28, 2021

Conversation

zannkukai
Copy link
Contributor

Sometimes, no loan parameter could be send to can_extend method. In
this case, the function skip all checks and return True. Now this
function try to load the loan based on others function arguments to be
more relevant.

Co-Authored-by: Renaud Michotte [email protected]

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Cypress tests successful?

@zannkukai zannkukai self-assigned this Jun 16, 2021
@zannkukai zannkukai added the bug Breaks something but is not blocking label Jun 16, 2021
@github-actions github-actions bot added the f: circulation Concerns the circulation interface or backend label Jun 16, 2021
@zannkukai zannkukai added this to the v1.3.0 milestone Jun 16, 2021
@iGormilhit iGormilhit modified the milestones: v1.3.0, v1.4.0 Jun 16, 2021
@zannkukai zannkukai force-pushed the zan-fix-extend-loan branch from d20c995 to e4082c1 Compare June 16, 2021 09:13
@zannkukai zannkukai force-pushed the zan-fix-extend-loan branch 3 times, most recently from 5ff2896 to 3c794fc Compare June 16, 2021 13:23
Sometimes, no loan parameter could be send to `can_extend` method. In
this case, the function skip all checks and return True. Now this
function try to load the loan based on others function arguments to be
more relevant.

Co-Authored-by: Renaud Michotte <[email protected]>
@zannkukai zannkukai force-pushed the zan-fix-extend-loan branch from 3c794fc to 017acd3 Compare June 24, 2021 11:22
@zannkukai zannkukai merged commit de08e67 into rero:dev Jun 28, 2021
@zannkukai zannkukai deleted the zan-fix-extend-loan branch June 28, 2021 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Breaks something but is not blocking f: circulation Concerns the circulation interface or backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants