diff --git a/src/app/components/param-link/param-link.component.ts b/src/app/components/param-link/param-link.component.ts index fbe6f22261d082a4615242e43ed8ae4b85a7c79e..3365f915a3736186594e4d268ba0a628e23dcbaf 100644 --- a/src/app/components/param-link/param-link.component.ts +++ b/src/app/components/param-link/param-link.component.ts @@ -1,7 +1,7 @@ import { Component, Input, Output, EventEmitter, OnChanges, OnDestroy } from "@angular/core"; import { NgParameter } from "../../formulaire/elements/ngparam"; -import { LinkedValue, ParamValueMode, Observer, Structure, acSection, ParamDefinition, ChildNub } from "jalhyd"; +import { LinkedValue, ParamValueMode, Observer, acSection, ParamDefinition, ChildNub, Cloisons, Pab } from "jalhyd"; import { FormulaireService } from "../../services/formulaire.service"; import { I18nService } from "../../services/internationalisation.service"; import { FormulaireDefinition } from "../../formulaire/definition/form-definition"; @@ -169,7 +169,14 @@ export class ParamLinkComponent implements OnChanges, Observer, OnDestroy { } // 1. Paramètre / résultat d'un Nub enfant au sein d'un Nub parent - if (i.nub instanceof ChildNub) { + if ( + (i.nub instanceof ChildNub) + || ( + (i.nub instanceof Cloisons) + && i.nub.parent !== undefined + && (i.nub.parent instanceof Pab) + ) + ) { let pos: number; pos = i.nub.findPositionInParent(); return `${preview} - ` + sprintf(