From 579cbf60090ccbf44f43fcaf69928314e355537e Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 16 Mar 2022 16:26:18 -0400 Subject: [PATCH] LP1958265 Holds grid barcode print/csv fix Tweak the barcode print/csv logic to populate the current_item and requested_item values using the same logic as the grid. Signed-off-by: Bill Erickson Signed-off-by: Terran McCanna --- Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts b/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts index 80bc101fe3..7a27e5a8f4 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts @@ -207,8 +207,8 @@ export class HoldsGridComponent implements OnInit { this.cellTextGenerator = { title: row => row.title, cp_barcode: row => (row.cp_barcode == null) ? '' : row.cp_barcode, - current_item: row => (row.cp_barcode == null) ? '' : row.cp_barcode, - requested_item: row => (row.cp_barcode == null) ? '' : row.cp_barcode, + current_item: row => row.current_copy ? row.cp_barcode : '', + requested_item: row => this.isCopyHold(row) ? row.cp_barcode : '', ucard_barcode: row => row.ucard_barcode }; } -- 2.11.0