LP#1729922: correctly display most recent transit in item status user/csharp/lp1729922_most_recent_transit
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 8 Dec 2017 15:29:40 +0000 (10:29 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 8 Dec 2017 19:35:36 +0000 (14:35 -0500)
commitb98995b4d7893d633b363466283fa2e1f0ae3133
treef830bb6787edd510da5efec7047a75b41979d25b
parent9a7e27bbe1cef474f6ac1d9d51b87a05faa81fce
LP#1729922: correctly display most recent transit in item status

This patch ensures that the 'Most Recent Transit' display in
the web staff client's item status page shows the latest transit,
not the oldest one. This also fixes a bug where the transit
receive time never got displayed.  As a side effect, this patch
also ensures that only the transit in question is fetched from
the database, not all transits on the item.

To test
-------
[1] Set up an item with some closed transits and display in in
    detail view in the Item Status page. Note that the
    /oldest/ transit is displayed and that the transit
    receive time field is blank.
[2] Apply the patch and repeat step 1.
[3] This time, the most recent transit should be displayed, and
    if that transit was received, the receive time should be
    displayed.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/templates/staff/cat/item/t_holds_pane.tt2
Open-ILS/web/js/ui/default/staff/cat/item/app.js