mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +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
|
||||||
@@ -447,7 +447,7 @@ export class FormFieldModel extends FormWidgetModel {
|
|||||||
private isDateField(json: any) {
|
private isDateField(json: any) {
|
||||||
return (json.params &&
|
return (json.params &&
|
||||||
json.params.field &&
|
json.params.field &&
|
||||||
json.params.field.type === FormFieldTypes.DATE ) ||
|
json.params.field.type === FormFieldTypes.DATE) ||
|
||||||
json.type === FormFieldTypes.DATE;
|
json.type === FormFieldTypes.DATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user