inveniosoftware / invenio-circulation

Library circulation module for Invenio.
https://invenio-circulation.readthedocs.io
MIT License
0 stars 18 forks source link

Loans: loan extension is possible even though the extension_max_count is reached #95

Closed BadrAly closed 5 years ago

BadrAly commented 5 years ago

Correction needed in transitions.py:

if extension_count > extension_max_count + 1: to: if extension_count > extension_max_count:

This to address case when: current_app.config["CIRCULATION_POLICIES"]["extension"]["max_count"] = 0