Skip to content

Commit

Permalink
- DocLister 2.3.5 fix paginate
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmi3yy committed Jul 19, 2017
1 parent 6daadd0 commit c234853
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/snippets/DocLister/core/controller/onetable.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ protected function getChildrenList()
$where = '';
}
$fields = $this->getCFGDef('selectFields', '*');
$group = $this->getGroupSQL($this->getCFGDef('groupBy', "`{$this->getPK()}`"));
$group = $this->getGroupSQL($this->getCFGDef('groupBy', ''));
if ($sanitarInIDs != "''" || $this->getCFGDef('ignoreEmpty', '0')) {
$sql = $this->dbQuery("SELECT {$fields} FROM " . $this->table . " " . $where . " " .
$group . " " .
Expand Down
2 changes: 1 addition & 1 deletion assets/snippets/DocLister/core/controller/shopkeeper.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function getChildrenCount()
if (trim($where) == 'WHERE') {
$where = '';
}
$group = $this->getGroupSQL($this->getCFGDef('groupBy', ''));
$group = $this->getGroupSQL($this->getCFGDef('groupBy', 'c.id'));
$sort = $this->SortOrderSQL("c.createdon");
list($from) = $this->injectSortByTV($from, $sort);

Expand Down
2 changes: 1 addition & 1 deletion assets/snippets/DocLister/core/controller/site_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public function getChildrenCount()
if (trim($where) == 'WHERE') {
$where = '';
}
$group = $this->getGroupSQL($this->getCFGDef('groupBy', ''));
$group = $this->getGroupSQL($this->getCFGDef('groupBy', 'c.id'));
$sort = $this->SortOrderSQL("if(c.pub_date=0,c.createdon,c.pub_date)");
list($from) = $this->injectSortByTV($from, $sort);

Expand Down
2 changes: 1 addition & 1 deletion install/assets/snippets/DocLister.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Snippet to display the information of the tables by the description rules. The main goal - replacing Ditto and CatalogView
*
* @category snippet
* @version 2.3.3
* @version 2.3.5
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License (GPL)
* @internal @properties
* @internal @modx_category Content
Expand Down

0 comments on commit c234853

Please sign in to comment.