mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4468] FormCloud - Be able to display the value of a form variables (#4676)
* Fix the value passed as processDefinition Be sure we fetch the form variables * * Rename formId to formKey. * * Reverted form Changes * * Fixed failing unit test * Fix the value passed as processDefinition Be sure we fetch the form variables * * Fixed failing unit test * * Rename formId to formKey. * * Reverted form Changes * * Fixed failing unit test * Fix form representation structure * Refactor form models * Change tslint config * Fix lint * Refactor form models * Remove duplicated export * improve variable names * Update form mock
This commit is contained in:
committed by
Eugenio Romano
parent
051e8df091
commit
63f00e21cf
@@ -215,14 +215,7 @@ export class WidgetVisibilityService {
|
||||
}
|
||||
|
||||
private getFormVariables(form: FormModel): any[] {
|
||||
let variables;
|
||||
if (form.json.formRepresentation) {
|
||||
variables = form.json.formRepresentation.formDefinition.variables;
|
||||
} else {
|
||||
variables = form.json.variables;
|
||||
}
|
||||
|
||||
return variables;
|
||||
return form.json.variables;
|
||||
}
|
||||
|
||||
private getProcessVariableValue(name: string, processVarList: TaskProcessVariableModel[]): string {
|
||||
|
Reference in New Issue
Block a user