LP1904036 Patron reg honor default ident type
authorBill Erickson <berickxx@gmail.com>
Fri, 1 Oct 2021 15:52:58 +0000 (11:52 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:38 +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/edit.component.ts

index b7bcecd..361cdda 100644 (file)
@@ -770,6 +770,11 @@ export class EditComponent implements OnInit, AfterViewInit {
         this.strings.interpolate('circ.patron.edit.default_addr_type')
         .then(msg => addr.address_type(msg));
 
+        this.serverStore.getItem('ui.patron.default_ident_type')
+        .then(identType => {
+            if (identType) { patron.ident_type(Number(identType)); }
+        })
+
         this.patron = patron;
         this.addWaiver();
     }