mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Fixed CTF sorting in ModelAdmin results (was failing because of missing 'ResultAssembly' GET parameters (from r102712)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@111655 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b85dab39ce
commit
9b2e9b6164
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user