mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix form variables
This commit is contained in:
@@ -181,7 +181,7 @@ export class FormFieldModel extends FormWidgetModel {
|
|||||||
if (processVariable) {
|
if (processVariable) {
|
||||||
this.value = processVariable;
|
this.value = processVariable;
|
||||||
}
|
}
|
||||||
} else if (json.params.field.responseVariable) {
|
} else if (json.params.responseVariable) {
|
||||||
const formVariable = this.getVariablesValue(json.params.field.name, form);
|
const formVariable = this.getVariablesValue(json.params.field.name, form);
|
||||||
if (formVariable) {
|
if (formVariable) {
|
||||||
this.value = formVariable;
|
this.value = formVariable;
|
||||||
@@ -287,7 +287,7 @@ export class FormFieldModel extends FormWidgetModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
parseValue(json: any): any {
|
parseValue(json: any): any {
|
||||||
let value = json.value;
|
let value = json.hasOwnProperty('value') ? json.value : null;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This is needed due to Activiti issue related to reading dropdown values as value string
|
This is needed due to Activiti issue related to reading dropdown values as value string
|
||||||
|
Reference in New Issue
Block a user