LP1904036 Penalty dialog clear prev. values on dialog open
authorBill Erickson <berickxx@gmail.com>
Fri, 19 Nov 2021 17:16:23 +0000 (12:16 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:39 +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/share/patron/penalty-dialog.component.ts

index 8380a0e..eeaf2dc 100644 (file)
@@ -71,6 +71,10 @@ export class PatronPenaltyDialogComponent
     init(): Observable<any> {
         this.dataLoaded = false;
 
+        this.patronMessage = 0;
+        this.initials = '';
+        this.noteText = '';
+
         if (this.penalty) { // Modifying an existing penalty
             const pen = this.penalty;
             const sp = pen.standing_penalty().id();