Skip to content

Commit c234853

Browse files
committed
- DocLister 2.3.5 fix paginate
1 parent 6daadd0 commit c234853

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

assets/snippets/DocLister/core/controller/onetable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 . " " .

assets/snippets/DocLister/core/controller/shopkeeper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

assets/snippets/DocLister/core/controller/site_content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

install/assets/snippets/DocLister.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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

0 commit comments

Comments
 (0)