LP1904036 Checkout grid row selection repair
authorBill Erickson <berickxx@gmail.com>
Wed, 18 Aug 2021 21:01:04 +0000 (17:01 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:36 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/circ/patron/checkout.component.ts
Open-ILS/src/eg2/src/app/staff/circ/patron/patron.service.ts

index 8d9ad2c..d9971b0 100644 (file)
@@ -34,6 +34,7 @@ const SESSION_DUE_DATE = 'eg.circ.checkout.is_until_logout';
   selector: 'eg-patron-checkout'
 })
 export class CheckoutComponent implements OnInit, AfterViewInit {
+    static autoId = 0;
 
     maxNoncats = 99; // Matches AngJS version
     checkoutNoncat: IdlObject = null;
@@ -195,6 +196,7 @@ export class CheckoutComponent implements OnInit, AfterViewInit {
 
     gridifyResult(result: CheckoutResult) {
         const entry: CircGridEntry = {
+            index: CheckoutComponent.autoId++,
             copy: result.copy,
             circ: result.circ,
             dueDate: null,
index cf4ce45..d0a5118 100644 (file)
@@ -17,6 +17,7 @@ export interface BillGridEntry extends CircDisplayInfo {
 }
 
 export interface CircGridEntry {
+    index: number;
     title?: string;
     author?: string;
     isbn?: string;