From ba6c2dbf395a27e79ff74ff0a0c75db799f579b4 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Sun, 4 Apr 2021 17:36:45 -0400 Subject: [PATCH] LP1904036 User setting values may be null Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.ts b/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.ts index dcf97214c8..508e22c548 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.ts @@ -1449,7 +1449,8 @@ export class EditComponent implements OnInit, AfterViewInit { newValue = this.patron[field](); } else if (matches = field.match(/(\w+)_notify/)) { - newValue = this.userSettings['opac.hold_notify'].match(matches[1]) !== null; + const holdNotify = this.userSettings['opac.hold_notify'] || ''; + newValue = holdNotify.match(matches[1]) !== null; } const oldValue = this.holdNotifyValues[field]; -- 2.11.0