BUGFIX Fixed CTF sorting in ModelAdmin results (was failing because of missing 'ResultAssembly' GET parameters

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@102712 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-04-13 20:12:31 +00:00 committed by Sam Minnee
parent b7a9287844
commit 5e9d3a3f38

View File

@ -669,9 +669,8 @@ class ModelAdmin_CollectionController extends Controller {
$summaryFields = $this->columnsAvailable(); $summaryFields = $this->columnsAvailable();
$resultAssembly = $searchCriteria['ResultAssembly']; if($selectedOnly && isset($searchCriteria['ResultAssembly'])) {
if($selectedOnly && $resultAssembly) { $resultAssembly = $searchCriteria['ResultAssembly'];
if(!is_array($resultAssembly)) { if(!is_array($resultAssembly)) {
$explodedAssembly = split(' *, *', $resultAssembly); $explodedAssembly = split(' *, *', $resultAssembly);
$resultAssembly = array(); $resultAssembly = array();