File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
assets/snippets/DocLister/core/controller Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ protected function getChildrenList()
288288 $ where = '' ;
289289 }
290290 $ fields = $ this ->getCFGDef ('selectFields ' , '* ' );
291- $ group = $ this ->getGroupSQL ($ this ->getCFGDef ('groupBy ' , " ` { $ this -> getPK ()} ` " ));
291+ $ group = $ this ->getGroupSQL ($ this ->getCFGDef ('groupBy ' , '' ));
292292 if ($ sanitarInIDs != "'' " || $ this ->getCFGDef ('ignoreEmpty ' , '0 ' )) {
293293 $ sql = $ this ->dbQuery ("SELECT {$ fields } FROM " . $ this ->table . " " . $ where . " " .
294294 $ group . " " .
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ public function getChildrenCount()
203203 if (trim ($ where ) == 'WHERE ' ) {
204204 $ where = '' ;
205205 }
206- $ group = $ this ->getGroupSQL ($ this ->getCFGDef ('groupBy ' , '' ));
206+ $ group = $ this ->getGroupSQL ($ this ->getCFGDef ('groupBy ' , 'c.id ' ));
207207 $ sort = $ this ->SortOrderSQL ("c.createdon " );
208208 list ($ from ) = $ this ->injectSortByTV ($ from , $ sort );
209209
Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ public function getChildrenCount()
348348 if (trim ($ where ) == 'WHERE ' ) {
349349 $ where = '' ;
350350 }
351- $ group = $ this ->getGroupSQL ($ this ->getCFGDef ('groupBy ' , '' ));
351+ $ group = $ this ->getGroupSQL ($ this ->getCFGDef ('groupBy ' , 'c.id ' ));
352352 $ sort = $ this ->SortOrderSQL ("if(c.pub_date=0,c.createdon,c.pub_date) " );
353353 list ($ from ) = $ this ->injectSortByTV ($ from , $ sort );
354354
Original file line number Diff line number Diff line change 55 * Snippet to display the information of the tables by the description rules. The main goal - replacing Ditto and CatalogView
66 *
77 * @category snippet
8- * @version 2.3.3
8+ * @version 2.3.5
99 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License (GPL)
1010 * @internal @properties
1111 * @internal @modx_category Content
You can’t perform that action at this time.
0 commit comments