Skip to content

Commit

Permalink
Admin Tweak - Reverse Default Order of Reviews
Browse files Browse the repository at this point in the history
OC lists reviews ordered by date added in ascending order (oldest first)
by default. This patch reverses the default order (newest first) so that
the reviews awaiting moderation are shown first.
  • Loading branch information
OC2PS-2 committed Feb 22, 2015
1 parent 45fc863 commit 2387c78
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions upload/admin/controller/catalog/review.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,19 +182,20 @@ protected function getList() {
} else {
$filter_date_added = null;
}

if (isset($this->request->get['sort'])) {
$sort = $this->request->get['sort'];
} else {
$sort = 'r.date_added';
}


if (isset($this->request->get['order'])) {
$order = $this->request->get['order'];
} else {
$order = 'ASC';
}


if (isset($this->request->get['sort'])) {
$sort = $this->request->get['sort'];
} else {
$sort = 'r.date_added';
$order = 'DESC';
}

if (isset($this->request->get['page'])) {
$page = $this->request->get['page'];
} else {
Expand Down

0 comments on commit 2387c78

Please sign in to comment.