update file naming for formSchemaData items
This commit is contained in:
@@ -210,7 +210,17 @@ function getArrayItemName(propertyName, item, index, totalCount) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (propertyName === 'formSchemaData' && item && typeof item === 'object' && item.id != null) {
|
if (propertyName === 'formSchemaData' && item && typeof item === 'object' && item.id != null) {
|
||||||
return `schemaId_${String(item.id)}`;
|
return `formSchemaData_item_${String(item.id)}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (propertyName === 'moduleConfig' && typeof item === 'string') {
|
||||||
|
const rawOrderValue = extractXmlValueFromSection(item, 'Step', 'COL0005');
|
||||||
|
if (rawOrderValue) {
|
||||||
|
const sanitized = sanitizeFileName(rawOrderValue);
|
||||||
|
if (sanitized) {
|
||||||
|
return `moduleConfig_item_${sanitized}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (propertyName === 'moduleTab' && typeof item === 'string') {
|
if (propertyName === 'moduleTab' && typeof item === 'string') {
|
||||||
|
|||||||
Reference in New Issue
Block a user