From: Galen Charlton Date: Tue, 26 May 2020 23:01:55 +0000 (-0400) Subject: add slot_id to various fetches X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8bc0b2dd69cc995694711e6788063183a4766336;p=working%2FEvergreen.git add slot_id to various fetches Needed by the AngularJS egGrid to uniquely identify rows, as otherwise selecting one row will select them all. Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Curbside.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Curbside.pm index 60cbf5f009..80e060a331 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Curbside.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Curbside.pm @@ -168,7 +168,7 @@ sub fetch_arrived { fulfillment_time => undef }); - $conn->respond({slot => $s, holds => $holds}); + $conn->respond({slot_id => $s->id, slot => $s, holds => $holds}); } return undef; @@ -255,7 +255,7 @@ sub fetch_staged { fulfillment_time => undef }); - $conn->respond({slot => $s, holds => $holds}); + $conn->respond({slot_id => $s->id, slot => $s, holds => $holds}); } return undef; @@ -357,7 +357,7 @@ sub fetch_to_be_staged { ($_->id => $e->retrieve_metabib_wide_display_entry( $_->bib_record)) } @$rhrr_list; - $conn->respond({slot => $s, holds => $holds, bib_data_by_hold => \%bib_data}); + $conn->respond({slot_id => $s->id, slot => $s, holds => $holds, bib_data_by_hold => \%bib_data}); } return undef;