From 9ff0d6f54450cdca689f4060f618cfefff436c1c Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 3 Nov 2020 15:04:37 -0500 Subject: [PATCH] LP1889128 Activation date repair and form reset handling Fixes an issue where the holds activation date was not correctly retrieved from the form. Related, hold suspension and activation date values are now reset/cleared when a new hold receipt is selected. Signed-off-by: Bill Erickson Signed-off-by: Michele Morgan Signed-off-by: Jane Sandberg --- .../eg2/src/app/staff/catalog/hold/hold.component.html | 4 ++-- .../eg2/src/app/staff/catalog/hold/hold.component.ts | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.html index 6a1147dc0a..26ca6f215a 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.html @@ -90,8 +90,8 @@
- +
diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts index 59f6a54543..02f9a4e333 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts @@ -63,7 +63,8 @@ export class HoldComponent implements OnInit { notifySms: boolean; smsValue: string; suspend: boolean; - activeDate: string; + activeDateStr: string; + activeDate: Date; holdContexts: HoldContext[]; recordSummaries: BibRecordSummary[]; @@ -306,7 +307,7 @@ export class HoldComponent implements OnInit { } activeDateSelected(dateStr: string) { - this.activeDate = dateStr; + this.activeDateStr = dateStr; } userBarcodeChanged() { @@ -365,6 +366,9 @@ export class HoldComponent implements OnInit { this.currentUserBarcode = null; this.multiHoldCount = 1; this.smsValue = ''; + this.activeDate = null; + this.activeDateStr = null; + this.suspend = false; if (this.smsCbox) { this.smsCbox.selectedId = null; } // Avoid clearing the barcode in cases where the form is @@ -533,7 +537,7 @@ export class HoldComponent implements OnInit { notifyPhone: this.notifyPhone ? this.phoneValue : null, notifySms: this.notifySms ? this.smsValue : null, smsCarrier: this.smsCbox ? this.smsCbox.selectedId : null, - thawDate: this.suspend ? this.activeDate : null, + thawDate: this.suspend ? this.activeDateStr : null, frozen: this.suspend, holdableFormats: selectedFormats -- 2.43.2