mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
[MNT-24555] Set download node name on node creation (#2901)
* [MNT-24555] Set download node name on node creation * [MNT-24555] PMD scan changes
This commit is contained in:
@@ -712,8 +712,7 @@ public class CustomModelsImpl implements CustomModels
|
||||
boolean withForm = Boolean.valueOf(propName);
|
||||
try
|
||||
{
|
||||
NodeRef nodeRef = customModelService.createDownloadNode(modelName, withForm);
|
||||
nodeService.setProperty(nodeRef, ContentModel.PROP_NAME, modelName + DownloadsImpl.DEFAULT_ARCHIVE_EXTENSION);
|
||||
NodeRef nodeRef = customModelService.createDownloadNode(modelName, withForm, modelName + DownloadsImpl.DEFAULT_ARCHIVE_EXTENSION);
|
||||
return new CustomModelDownload(nodeRef);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
Reference in New Issue
Block a user