fixing patron barcode filter of manage reservations
authorJane Sandberg <sandbej@linnbenton.edu>
Tue, 26 Mar 2019 20:17:15 +0000 (13:17 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Tue, 26 Mar 2019 20:17:15 +0000 (13:17 -0700)
Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.ts

index dfd36bb..f37022b 100644 (file)
@@ -94,7 +94,7 @@ export class ManageReservationsComponent implements OnInit {
             if (this.patronBarcode) {
                 this.patron.bcSearch(this.patronBarcode).subscribe(
                     (response) => {
-                        this.router.navigate(['/staff', 'booking', 'manage_reservations', 'by_patron', response.id]);
+                        this.router.navigate(['/staff', 'booking', 'manage_reservations', 'by_patron', response[0].id]);
                 });
             } else {
                 this.removeFilters();