File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
core/components/collections/src/Processors/Resource Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ Changelog for Collections.
33Collections 4.0.0
44===================
55- 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
610
711Collections 3.7.1
812===================
Original file line number Diff line number Diff line change 44 "namespace" : " Collections" ,
55 "description" : " Hides resources under this container in tree. Adding grid int o the update resource panel." ,
66 "author" : " John Peca" ,
7- "version" : " 4.0.0-beta1 " ,
7+ "version" : " 4.0.0-pl " ,
88 "menus" : [
99 {
1010 "text" : " collections.menu.collection_templates" ,
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ public function prepareQueryBeforeCount(xPDOQuery $c)
380380 public function prepareQueryAfterCount (xPDOQuery $ c )
381381 {
382382
383- $ c ->select ($ this ->modx ->getSelectColumns (modResource::class, 'modResource ' ));
383+ $ c ->select (' DISTINCT ' . $ this ->modx ->getSelectColumns (modResource::class, 'modResource ' ));
384384 $ c ->select ([
385385 'has_children ' => "EXISTS (SELECT 1 FROM {$ this ->modx ->getTableName (modResource::class)} r WHERE r.parent = modResource.id) "
386386 ]);
You can’t perform that action at this time.
0 commit comments