mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-3181, RM-3195: ensure JSON conversion component works when no file plan is found
This commit is contained in:
@@ -414,7 +414,6 @@ public class JSONConversionComponent extends org.alfresco.repo.jscript.app.JS
|
|||||||
if (filePlan != null)
|
if (filePlan != null)
|
||||||
{
|
{
|
||||||
result.put("filePlan", filePlan.toString());
|
result.put("filePlan", filePlan.toString());
|
||||||
}
|
|
||||||
|
|
||||||
// Unfiled container node reference
|
// Unfiled container node reference
|
||||||
NodeRef unfiledRecordContainer = filePlanService.getUnfiledContainer(filePlan);
|
NodeRef unfiledRecordContainer = filePlanService.getUnfiledContainer(filePlan);
|
||||||
@@ -425,6 +424,7 @@ public class JSONConversionComponent extends org.alfresco.repo.jscript.app.JS
|
|||||||
QName type = fileFolderService.getFileInfo(unfiledRecordContainer).getType();
|
QName type = fileFolderService.getFileInfo(unfiledRecordContainer).getType();
|
||||||
result.put("type", useShortQName ? type.toPrefixString(namespaceService) : type.toString());
|
result.put("type", useShortQName ? type.toPrefixString(namespaceService) : type.toString());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user