From dc7dceb37a917f394e1e1020882dcc5a4e0e9d7c Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Tue, 18 Apr 2017 17:08:34 +0000
Subject: [PATCH] #3582 fix - Fixed license form initial data and submit
---
securis/src/main/webapp/src/app/forms/license.form.component.ts | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/securis/src/main/webapp/src/app/forms/license.form.component.ts b/securis/src/main/webapp/src/app/forms/license.form.component.ts
index ee052b9..b4dbdd1 100644
--- a/securis/src/main/webapp/src/app/forms/license.form.component.ts
+++ b/securis/src/main/webapp/src/app/forms/license.form.component.ts
@@ -130,6 +130,15 @@
},
err => console.error(err)
);
+ if (this.isNew) {
+ this.packs.nextLicCode(packId).subscribe(
+ code => {
+ this.data.code = code;
+ },
+ err => console.error(err)
+ );
+ }
+
});
}
}
--
Gitblit v1.3.2