stevenyvr987 / overdrive-evergreen-opac

Automatically exported from code.google.com/p/overdrive-evergreen-opac
0 stars 0 forks source link

Place hold link is active if user already has placed a hold #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Place a hold on an e-item
2. Log out and search for e-item to show on result list
3. Click Place Hold link and log in again

What is the expected output? What do you see instead?

The screen now shows the Place Hold form and the Place Hold link should be 
replaced by Go To Holds List. Perhaps the form should say, You already have a 
hold placed on this item, or something similar.

Instead, the user sees the Place Hold link, and if the user clicks it, a 400 
Bad Request status is returned, and the action dialogue says, Possible network 
failure, try again.

Original issue reported on code.google.com by steven3...@gmail.com on 21 Jun 2014 at 6:54

GoogleCodeExporter commented 9 years ago
Fixed by checking if the user has placed a hold or checked out the item and if 
so, then go back history two pages so that the results or record page is 
reloaded, but now with the proper action link.

Original comment by steven3...@gmail.com on 5 Jul 2014 at 9:49