Skip to content
Snippets Groups Projects
Commit 7ac64fa2 authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

fix issue 43

parent 8ffd2bda
No related branches found
No related tags found
4 merge requests!418V2.1.0,!400V2.0,!343fix(form): fix issues,!230V2.0
...@@ -97,9 +97,6 @@ export class FormViewComponent implements OnInit { ...@@ -97,9 +97,6 @@ export class FormViewComponent implements OnInit {
if (this.profile.structuresLink.length) { if (this.profile.structuresLink.length) {
// if register a new user as a new member structure, no structure to choose // if register a new user as a new member structure, no structure to choose
this.isRegisterNewMember = true; this.isRegisterNewMember = true;
this.structureService.getStructure(this.profile.structuresLink[0]).subscribe((structure) => {
this.structure = new Structure(structure);
});
} }
} }
}); });
...@@ -340,7 +337,10 @@ export class FormViewComponent implements OnInit { ...@@ -340,7 +337,10 @@ export class FormViewComponent implements OnInit {
// if register a new user as a new member structure, no structure to choose // if register a new user as a new member structure, no structure to choose
if (this.isRegisterNewMember) { if (this.isRegisterNewMember) {
if (this.profile.job && this.profile.job.hasPersonalOffer) { if (this.profile.job && this.profile.job.hasPersonalOffer) {
this.router.navigateByUrl('form/personaloffer'); this.structureService.getStructure(this.profile.structuresLink[0]).subscribe((structure) => {
this.structure = new Structure(structure);
this.router.navigateByUrl('form/personaloffer');
});
} else { } else {
this.router.navigateByUrl('/profile'); this.router.navigateByUrl('/profile');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment