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)
committerBill Erickson <berickxx@gmail.com>
Thu, 29 Sep 2022 14:22:44 +0000 (07:22 -0700)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
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();