Sometimes two loans are created on the same item-patron combination. This should never happen as it may cause problems in the circulation and stats. This seems to happen when performing the same circulation operation in very quick succession, e.g. double-clicking on the checkout button. The HTTP request for the checkout is sent to the server twice without giving it time to index the resources, which causes conflicts and errors.
Expected behavior:
It should not be possible to send the same circulation request multiple times in quick succession.
Maybe use Angular to limit the number of request sent to 1 second (?).
Steps to Reproduce:
Go to the pro UI in a patron profile (checkout interface)
Checkout an item: enter the barcode and click on the magnifier multiple times ! To simulate a double scan.
Bug description:
Sometimes two loans are created on the same item-patron combination. This should never happen as it may cause problems in the circulation and stats. This seems to happen when performing the same circulation operation in very quick succession, e.g. double-clicking on the checkout button. The HTTP request for the checkout is sent to the server twice without giving it time to index the resources, which causes conflicts and errors.
Expected behavior:
It should not be possible to send the same circulation request multiple times in quick succession.
Maybe use Angular to limit the number of request sent to 1 second (?).
Steps to Reproduce:
Context