byu-osl / bookout

A person-to-person library
3 stars 0 forks source link

Modal to request book shows only one result #4

Closed n8carrier closed 11 years ago

n8carrier commented 11 years ago

I created four dummy accounts that are all connected to my main account. I added Dreaming in Code to each dummy account and searched for the book in my own account. When I click "Request to Borrow" in the results, the modal only displays one result:

image

However, the backend is returning ajax with all three results:

{ "9": { "username": "userb@example.com", "bookCopyID": 10, "available": "True" }, "2": { "username": "usera@example.com", "bookCopyID": 12, "available": "True" }, "13": { "username": "userc@example.com", "bookCopyID": 15, "available": "True" } }