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
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:
parent
b7a9287844
commit
5e9d3a3f38
@ -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