Sort wishes by URL
This commit is contained in:
parent
9ea397df24
commit
1dfadc8303
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class Wishlist
|
||||||
$FROM = isset($sql['FROM']) ? $sql['FROM'] : Wish::FROM;
|
$FROM = isset($sql['FROM']) ? $sql['FROM'] : Wish::FROM;
|
||||||
$LEFT_JOIN = isset($sql['LEFT_JOIN']) ? $sql['LEFT_JOIN'] : Wish::LEFT_JOIN;
|
$LEFT_JOIN = isset($sql['LEFT_JOIN']) ? $sql['LEFT_JOIN'] : Wish::LEFT_JOIN;
|
||||||
$WHERE = isset($sql['WHERE']) ? $sql['WHERE'] : '`wishlist` = ' . $this->id;
|
$WHERE = isset($sql['WHERE']) ? $sql['WHERE'] : '`wishlist` = ' . $this->id;
|
||||||
$ORDER_BY = isset($sql['ORDER_BY']) ? $sql['ORDER_BY'] : '`priority` DESC, `title` ASC, `url` ASC';
|
$ORDER_BY = isset($sql['ORDER_BY']) ? $sql['ORDER_BY'] : '`priority` DESC, `url` ASC, `title` ASC';
|
||||||
|
|
||||||
$WHERE .= ' AND (`status` != "' . Wish::STATUS_FULFILLED . '" OR `status` IS NULL)';
|
$WHERE .= ' AND (`status` != "' . Wish::STATUS_FULFILLED . '" OR `status` IS NULL)';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue