Fix for adding an user without staff (#1701)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
98196bde39
commit
e40bb0d8ac
+1
-1
@@ -115,7 +115,7 @@
|
||||
<div fxFlexFill *ngIf="loansAccount.inArrearsTolerance">
|
||||
<span fxFlex="40%">Arrears tolerance: </span>
|
||||
<span
|
||||
fxFlex="60%">{{loansAccount.inArrearsTolerance}} {{loansAccountProductTemplate.currency.displaySymbol}}</span>
|
||||
fxFlex="60%">{{loansAccount.inArrearsTolerance}}</span>
|
||||
</div>
|
||||
|
||||
<div fxFlexFill *ngIf="loansAccount.graceOnInterestCharged">
|
||||
|
||||
@@ -126,6 +126,9 @@ export class CreateUserComponent implements OnInit, AfterViewInit {
|
||||
*/
|
||||
submit() {
|
||||
const user = this.userForm.value;
|
||||
if (this.userForm.value.staffId == null || this.userForm.value.staffId === '') {
|
||||
delete user.staffId;
|
||||
}
|
||||
this.usersService.createUser(user).subscribe((response: any) => {
|
||||
if (this.configurationWizardService.showUsersForm === true) {
|
||||
this.configurationWizardService.showUsersForm = false;
|
||||
|
||||
Reference in New Issue
Block a user