description template has conflict bug fix

This commit is contained in:
amentis 2024-04-17 18:29:22 +03:00
parent aaac7dfdf4
commit 3ec12fdf59
1 changed files with 6 additions and 7 deletions

View File

@ -202,15 +202,14 @@ export class DescriptionTemplateEditorComponent extends BaseEditor<DescriptionTe
if (id === null) {
route.push('../..');
} else if (this.isNew) {
route.push('../' + id);
} else if (this.isNewVersion || this.isClone) {
route.push('/description-templates');
} else {
route.push('..');
this.router.navigate(route, { queryParams: { 'lookup': this.queryParamsService.serializeLookup(this.lookupParams), 'lv': ++this.lv }, replaceUrl: true, relativeTo: this.route });
} else if (this.isNew || this.isNewVersion || this.isClone) {
route.push('/description-templates/' + id);
this.router.navigate(route, { queryParams: { 'lookup': this.queryParamsService.serializeLookup(this.lookupParams), 'lv': ++this.lv }, replaceUrl: true, relativeTo: this.route });
} else{
this.refreshData();
}
this.router.navigate(route, { queryParams: { 'lookup': this.queryParamsService.serializeLookup(this.lookupParams), 'lv': ++this.lv }, replaceUrl: true, relativeTo: this.route });
}
persistEntity(onSuccess?: (response) => void): void {