Skip to content

Commit ab8785a

Browse files
committed
LPD-64121 check if the group has workflow links if needed
1 parent 5f7a20d commit ab8785a

File tree

1 file changed

+4
-0
lines changed
  • modules/apps/journal/journal-web/src/main/resources/META-INF/resources

1 file changed

+4
-0
lines changed

modules/apps/journal/journal-web/src/main/resources/META-INF/resources/edit_folder.jsp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,10 @@ renderResponse.setTitle(title);
331331
<%
332332
WorkflowDefinitionLink workflowDefinitionLink = WorkflowDefinitionLinkLocalServiceUtil.fetchWorkflowDefinitionLink(company.getCompanyId(), scopeGroupId, JournalFolder.class.getName(), folderId, JournalArticleConstants.DDM_STRUCTURE_ID_ALL, true);
333333
334+
if (workflowDefinitionLink == null) {
335+
workflowDefinitionLink = WorkflowDefinitionLinkLocalServiceUtil.fetchWorkflowDefinitionLink(company.getCompanyId(), scopeGroupId, JournalArticle.class.getName(), JournalFolderConstants.DEFAULT_PARENT_FOLDER_ID, JournalArticleConstants.DDM_STRUCTURE_ID_ALL, true);
336+
}
337+
334338
for (WorkflowDefinition workflowDefinition : workflowDefinitions) {
335339
boolean selected = false;
336340

0 commit comments

Comments
 (0)