Comment 7 for bug 1775276

Revision history for this message
Dan Briem (dbriem) wrote :

If open-ils.circ.checkin closes a transit and creates a new one (for example, opportunistic hold capture for another location), the return payload only contains the closed transit. The route dialogs perform a pcrud search to get the most recent transit, but the grid's Route To field still depends on the transit returned by the API. So, the dialog and receipt display the new destination, but the grid's Route To field displays the old destination.

Branch for testing: https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/dbriem/lp1775276_route_to_sometimes_incorrect

It returns the newest route data collected from the route dialog and, if the transit destination doesn't match the payload, assigns the new transit destination shortcode to the route_to prop on the final_resp. Also, it checks that the payload transit is open before assigning the final route_to prop so the shelving location displays for received transits.