LP1821409 Ang admin editor clears fields on new
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / share / admin-page / admin-page.component.ts
index 4561a04..125d3a0 100644 (file)
@@ -174,6 +174,10 @@ export class AdminPageComponent implements OnInit {
 
         this.createNew = () => {
             this.editDialog.mode = 'create';
+            // We reuse the same editor for all actions.  Be sure
+            // create action does not try to modify an existing record.
+            this.editDialog.recId = null;
+            this.editDialog.record = null;
             this.editDialog.open({size: this.dialogSize}).then(
                 ok => {
                     this.createString.current()