Buscando, por favor espere....

Información pública - València

Se ha producido un error al procesar la plantilla.
?sort_by(...) failed at sequence index 9838 (0-based): The "publishDate" subvariable was null or missing.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign entries = results?sort_by("pu...  [in template "20115#20151#4264042" at line 75, column 9]
----
1<#assign liferay_theme = PortletJspTagLibs["/META-INF/liferay-theme.tld"] /> 
2<@liferay_theme["defineObjects"] /> 
3<#assign themeRootPath = themeDisplay.getPathThemeRoot() /> 
4<#assign themeImagesPath = themeDisplay.getPathThemeImages() /> 
5 
6<#assign catLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") /> 
7 
8<#assign JournalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
9 
10<#assign informacionPub = "37865" /> 
11<#assign plantilla = '4911915' /> 
12<#if request.getParameter("p_r_p_categoryId")?has_content>  
13    <#assign categoryId = request.getParameter("p_r_p_categoryId") /> 
14<#else> 
15	<#assign categoryId = informacionPub /> 
16</#if> 
17     
18    <#assign categoryIdLong = categoryId?number?long /> 
19    <#assign friendlyURL = themeDisplay.getScopeGroup().getFriendlyURL() /> 
20     
21    <#assign classLoader = staticUtil["com.liferay.portal.kernel.util.PortalClassLoaderUtil"]/>    
22 
23    <#assign categoryValueClass = staticUtil["com.liferay.petra.lang.ClassResolverUtil"].resolve("com.liferay.asset.kernel.model.AssetCategory",classLoader.getClassLoader()) > 
24     
25    <#assign dynamicQuery = dynamicQueryFactory.forClass(categoryValueClass) > 
26    <#assign VOID = dynamicQuery.add(propertyFactory.forName("parentCategoryId").eq(categoryIdLong))> 
27    <#assign results = catLocalService.dynamicQuery(dynamicQuery) > 
28    <#assign categoryChilds = results /> 
29     
30    <div> 
31     
32    <#assign categoriaRecorrida = categoryIdLong > 
33    <#assign x=10> 
34    <#list 1..x as i> 
35     
36         
37        <#assign dynamicQueryPadres = dynamicQueryFactory.forClass(categoryValueClass) > 
38        <#assign VOID = dynamicQueryPadres.add(propertyFactory.forName("categoryId").eq(categoriaRecorrida))> 
39        <#assign resultsPadres = catLocalService.dynamicQuery(dynamicQueryPadres) > 
40        <#assign categoryPadres = resultsPadres /> 
41         
42         
43        <#if categoryPadres?has_content > 
44            <#list categoryPadres as categoryPadre> 
45                <#if i == 1 > 
46                    <h2>${categoryPadre.getTitle(locale)}</h2> 
47                </#if> 
48             <#assign categoriaRecorrida = categoryPadre.getParentCategoryId() >      
49            </#list> 
50        </#if> 
51   </#list>  
52         
53    </div> 
54     
55    <#if categoryChilds?has_content > 
56        <div class="container publicador-campanias"> 
57            <ul class="row tipoCirculos"> 
58                <#list categoryChilds as categoryChild>                            
59					<li class="col-xs-6">								 
60						<a href="${themeDisplay.getURLCurrent()}/-/categories/${categoryChild.getCategoryId()}" alt="${categoryChild.getTitle(locale)}"> 
61							<span class="elementoLista">${categoryChild.getTitle(locale)}</span> 
62						</a>								 
63					</li>                            
64                </#list> 
65            </ul> 
66        </div> 
67    <#else > 
68    	<#assign x = [categoryIdLong]> 
69    	<#assign assetEntryQueryService = objectUtil("com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil")> 
70    	<#assign assetEntryQuery = objectUtil("com.liferay.asset.kernel.service.persistence.AssetEntryQuery") /> 
71    	<#assign search =assetEntryQuery.setAnyCategoryIds(x) /> 
72    	 
73    	<#assign results = assetEntryQueryService.getEntries(assetEntryQuery)> 
74     
75    	<#assign entries = results?sort_by("publishDate")?reverse> 
76    	 
77    	<#if entries?has_content> 
78    		<div class="container"> 
79    		    <div class="row"> 
80                    <div class="col-xs-12 div-bloque-principal-actualidad"> 
81                        <div class="row"> 
82        					<#list entries as curEntry> 
83                            <#assign article = JournalArticleService.fetchLatestArticle(getterUtil.getLong(curEntry.getClassPK())) /> 
84        					    <div class="col-xs-12 col-sm-3 div-bloque-actualidad"> 
85            					    <@liferay_journal["journal-article"] 
86										articleId=article.getArticleId() 
87										ddmTemplateKey=plantilla 
88										groupId=article.getGroupId() 
89							        /> 
90							    </div> 
91        					</#list> 
92        				</div> 
93    				</div> 
94    			</div> 
95    		</div> 
96    	</#if>	 
97	</#if>