Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import fr.paris.lutece.util.http.SecurityUtil;

import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;

import java.util.Collection;
Expand Down Expand Up @@ -247,7 +248,7 @@ public String getPage( HttpServletRequest request, int nMode ) throws UserNotSig

data.setContent( page.getContent( ) );
data.setName( page.getTitle( ) );
data.setPagePath( PortalService.getXPagePathContent( page.getPathLabel( ), 0, request ) );
data.setPagePath( PortalService.getXPagePathContent( ObjectUtils.getIfNull( page.getPathLabel( ), strName ), 0, request ) );

return PortalService.buildPageContent( data, nMode, request );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.springframework.mock.web.MockHttpServletRequest;

import fr.paris.lutece.portal.business.page.Page;
import fr.paris.lutece.portal.business.style.PageTemplateHome;
import fr.paris.lutece.portal.service.cache.CacheService;
import fr.paris.lutece.portal.service.cache.CacheableService;
import fr.paris.lutece.portal.service.cache.IPathCacheService;
Expand Down Expand Up @@ -131,6 +132,7 @@ private int createPage( )
page.setName( "junit2" );
page.setDescription( "junit2" );
page.setParentPageId( PortalService.getRootPageId( ) );
page.setPageTemplateId( PageTemplateHome.getPageTemplatesList( ).get( 0 ).getId( ) );
pageService.createPage( page );
return page.getId( );
}
Expand Down