mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Added switch to be able to check the form behaviour (#6177)
Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
This commit is contained in:
@@ -68,7 +68,7 @@ export class InMemoryFormService extends FormService {
|
||||
});
|
||||
}
|
||||
|
||||
parseForm(json: any, data?: FormValues, readOnly: boolean = false): FormModel {
|
||||
parseForm(json: any, data?: FormValues, readOnly: boolean = false, prefixedSpace: boolean = true): FormModel {
|
||||
if (json) {
|
||||
const flattenForm = {
|
||||
...json.formRepresentation,
|
||||
@@ -81,7 +81,7 @@ export class InMemoryFormService extends FormService {
|
||||
formValues[variable.name] = variable.value;
|
||||
});
|
||||
|
||||
const form = new FormModel(flattenForm, formValues, readOnly, this);
|
||||
const form = new FormModel(flattenForm, formValues, readOnly, this, prefixedSpace);
|
||||
if (!json.fields) {
|
||||
form.outcomes = [
|
||||
new FormOutcomeModel(<any> form, {
|
||||
|
Reference in New Issue
Block a user