anchor.diff:  											</liferay-util:include>
   										</span>
   									</div>
  +									
   								<%
   								index++;
   							}
   							%>
  +							
  +							<c:if test="<%=partType == PortletConstants.DOSSIER_PART_TYPE_OTHER && dossier != null%>">
  +								<%
  +									List<DossierFile> dossierFiles = DossierFileLocalServiceUtil.
  +										getDossierFileByD_DP(dossier.getDossierId(), dossierPartLevel1.getDossierpartId());
  +								
  +									if(dossierFiles != null){
  +										for(DossierFile dossierFileOther : dossierFiles){
  +											index ++;
  +											%>
  +											<div class='<%="opencps dossiermgt dossier-part-row r-" + index%>'>
  +												<span class='<%="level-1 opencps dossiermgt dossier-part"%>'>
  +													<span class="row-icon">
  +														<i 
  +															id='<%="rowcheck" + dossierFileOther.getDossierPartId() + StringPool.DASH + index %>' 
  +															class='<%=dossierFileOther.getFileEntryId() > 0 ? "fa fa-check-square-o" : "fa fa-square-o" %>' 
  +															aria-hidden="true"
  +														>
  +														</i>
  +													</span>
  +													<span class="opencps dossiermgt dossier-part-name">
  +														<%=dossierFileOther.getDisplayName() %>
  +													</span>
  +												</span>
  +											
  +												<span class="opencps dossiermgt dossier-part-control">
  +													<liferay-util:include 
  +														page="/html/common/portlet/dossier_actions.jsp" 
  +														servletContext="<%=application %>"
  +													>
  +														<portlet:param 
  +															name="<%=DossierDisplayTerms.DOSSIER_ID %>" 
  +															value="<%=String.valueOf(dossier != null ? dossier.getDossierId() : 0) %>"
  +														/>
  +														<portlet:param 
  +															name="<%=DossierFileDisplayTerms.DOSSIER_PART_ID %>" 
  +															value="<%=String.valueOf(dossierFileOther.getDossierPartId()) %>"
  +														/>
  +														<portlet:param 
  +															name="<%=DossierFileDisplayTerms.FILE_ENTRY_ID %>" 
  +															value="<%=String.valueOf(dossierFileOther.getFileEntryId()) %>"
  +														/>
  +														<portlet:param 
  +															name="<%=DossierFileDisplayTerms.DOSSIER_FILE_ID %>" 
  +															value="<%=String.valueOf(dossierFileOther.getDossierFileId()) %>"
  +														/>
  +														<portlet:param 
  +															name="<%=DossierFileDisplayTerms.LEVEL %>" 
  +															value="<%=String.valueOf(1) %>"
  +														/>
  +														<portlet:param 
  +															name="<%=DossierFileDisplayTerms.GROUP_NAME %>" 
  +															value="<%=StringPool.BLANK%>"
  +														/>
  +														<portlet:param 
  +															name="<%=DossierFileDisplayTerms.PART_TYPE %>" 
  +															value="<%=String.valueOf(partType) %>"
  +														/>
  +													</liferay-util:include>
  +												</span>
  +											</div>
  +											<%
  +										}
  +									}
  +								%>
  +							</c:if>
   						</c:when>
   						
  -						<c:when test="<%=partType == PortletConstants.DOSSIER_PART_TYPE_PRIVATE%>">
  +						<c:when test="<%=partType == PortletConstants.DOSSIER_PART_TYPE_PRIVATE && dossier != null%>">
   							<%
   								List<FileGroup> fileGroups = new ArrayList<FileGroup>();
   							
  -								if(dossier != null){
  -									try{
  -										fileGroups = FileGroupLocalServiceUtil.getFileGroupByD_DP(dossier.getDossierId(), dossierPartLevel1.getDossierpartId());
  -									}catch(Exception e){}
  -								}
  +								try{
  +									fileGroups = FileGroupLocalServiceUtil.getFileGroupByD_DP(dossier.getDossierId(), dossierPartLevel1.getDossierpartId());
  +								}catch(Exception e){}
   								
   								
   							%>
  
positive.code: 													name="<%=DossierDisplayTerms.DOSSIER_ID %>" 
  													value="<%=String.valueOf(dossier != null ? dossier.getDossierId() : 0) %>"
  												/>
  												<portlet:param 
  													name="<%=DossierFileDisplayTerms.DOSSIER_PART_ID %>" 
  													value="<%=String.valueOf(dossierPart.getDossierpartId()) %>"
  
negative.code: 				});
  			});
  		}
  		
  		//Declare online
  		var declarationOnlines = A.all('.declaration-online');
  		
  		if(declarationOnlines){
  			declarationOnlines.each(function(e){
  				e.on('click', function(){
  					var instance = A.one(e);
  					var portletURL = Liferay.PortletURL.createURL('<%= PortletURLFactoryUtil.create(request, WebKeys.DOSSIER_MGT_PORTLET, themeDisplay.getPlid(), PortletRequest.RENDER_PHASE) %>');
  					portletURL.setParameter("mvcPath", "/html/portlets/dossiermgt/frontoffice/modal_dialog.jsp");
  					portletURL.setWindowState("<%=LiferayWindowState.POP_UP.toString()%>"); 
  					portletURL.setPortletMode("normal");
  					portletURL.setParameter("content", "declaration-online");
  					dynamicForm(this, portletURL.toString(), '<portlet:namespace/>');
  				});
  			});
  		}
  		
  		//View form
  		var viewForms = A.all('.view-form');
  		
  		if(viewForms){
  			viewForms.each(function(e){
  				e.on('click', function(){
  					var instance = A.one(e);
  					var portletURL = Liferay.PortletURL.createURL('<%= PortletURLFactoryUtil.create(request, WebKeys.DOSSIER_MGT_PORTLET, themeDisplay.getPlid(), PortletRequest.RENDER_PHASE) %>');
  					portletURL.setParameter("mvcPath", "/html/portlets/dossiermgt/frontoffice/modal_dialog.jsp");
  					portletURL.setWindowState("<%=LiferayWindowState.POP_UP.toString()%>"); 
  					portletURL.setPortletMode("normal");
  					portletURL.setParameter("content", "declaration-online");
  					dynamicForm(this, portletURL.toString(), '<portlet:namespace/>');
  				});
  			});
  		}
  	});
  
  </aui:script>
  