fixed disabled prefix in case of unsafe import to conform to new attribute name pattern constraints

This commit is contained in:
zadam 2020-12-04 22:05:29 +01:00
parent e318acc977
commit b7b1324dd0

View File

@ -158,7 +158,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
}
if (taskContext.data.safeImport && attributeService.isAttributeDangerous(attr.type, attr.name)) {
attr.name = 'disabled-' + attr.name;
attr.name = 'disabled:' + attr.name;
}
attributes.push(attr);