Sorting bug on ViewSiteNodePageComponents

astik <[email protected]>
Newsgroups gmane.comp.cms.infoglue.devel
Message-ID <[email protected]>
Hi all,

When the cms asked me to select a base component for a page, there is  
a popup :
/CMS/ViewSiteNodePageComponents!listComponents.action? 
eee 
= 
1 
&siteNodeId 
=1&languageId=4&contentId=-1&specifyBaseTemplate=true&showSimple=false

Into the popup, if i click on column for sorting by repository or  
group name, there is an exception :
/cms/ViewSiteNodePageComponents!listComponents.action? 
siteNodeId 
= 
1&languageId=4&contentId=-1&specifyBaseTemplate=true&parentComponentId= 
$parentComponentId&slotId= 
$ 
slotId 
&filterRepositoryId=1&sortProperty=repositoryId&showSimple=false&&&

As you can see, there is some parameters added :
&parentComponentId=$parentComponentId
&slotId=$slotId
&filterRepositoryId=1
&sortProperty=repositoryId

it seems that filterRepositoryId and sortProperty are used to sort.

parentComponentId and slotId are not properly defined, that is what  
cause the error. Removing those parameter makes the sorting works well.

Can these 2 parameters can be removed form the velocity view ? or can  
these parameters be properly defind ?  Or the best, add an exclamation  
mark after $ :
	into /infoglue2971/src/webapp/cms/structuretool/viewListComponents.vm  
line 89, 93 and 97 :
		...&parentComponentId=$parentComponentId&slotId=$slotId&...
	change it fo
		...&parentComponentId=$!parentComponentId&slotId=$!slotId&...

It has been tested on IG 2.9.7.1 ... maybe it is present on others  
versions too.

Tcho
__
Romain
http://blog.astik.info


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.