File tree 3 files changed +6
-2
lines changed
core/components/collections/src/Processors/Resource
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ Changelog for Collections.
3
3
Collections 4.0.0
4
4
===================
5
5
- Support for MODX Revolution 3.0.0
6
+ - Fix Fred endpoints
7
+ - Fix quick update action
8
+ - Fix view for Create New
9
+ - Fetch distinct resources for collection
6
10
7
11
Collections 3.7.1
8
12
===================
Original file line number Diff line number Diff line change 4
4
"namespace" : " Collections" ,
5
5
"description" : " Hides resources under this container in tree. Adding grid int o the update resource panel." ,
6
6
"author" : " John Peca" ,
7
- "version" : " 4.0.0-beta1 " ,
7
+ "version" : " 4.0.0-pl " ,
8
8
"menus" : [
9
9
{
10
10
"text" : " collections.menu.collection_templates" ,
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ public function prepareQueryBeforeCount(xPDOQuery $c)
380
380
public function prepareQueryAfterCount (xPDOQuery $ c )
381
381
{
382
382
383
- $ c ->select ($ this ->modx ->getSelectColumns (modResource::class, 'modResource ' ));
383
+ $ c ->select (' DISTINCT ' . $ this ->modx ->getSelectColumns (modResource::class, 'modResource ' ));
384
384
$ c ->select ([
385
385
'has_children ' => "EXISTS (SELECT 1 FROM {$ this ->modx ->getTableName (modResource::class)} r WHERE r.parent = modResource.id) "
386
386
]);
You can’t perform that action at this time.
0 commit comments