fix: wishlist saved view
This commit is contained in:
parent
31df7de9e0
commit
2fbbfe4e3f
2 changed files with 8 additions and 8 deletions
|
@ -284,17 +284,17 @@ class User
|
||||||
|
|
||||||
$result = $database
|
$result = $database
|
||||||
->query(
|
->query(
|
||||||
'SELECT `ws`.`wishlist`,
|
' SELECT `wishlists_saved`.`wishlist`,
|
||||||
`w`.`user`,
|
`wishlists`.`user`,
|
||||||
`w`.`hash`
|
`wishlists`.`hash`
|
||||||
FROM `wishlists_saved` `ws`
|
FROM `wishlists_saved`
|
||||||
JOIN `wishlists` `w` ON `w`.`id` = `ws`.`wishlist`
|
LEFT JOIN `wishlists` ON `wishlists`.`id` = `wishlists_saved`.`wishlist`
|
||||||
WHERE `ws`.`user` = :user_id;',
|
WHERE `wishlists_saved`.`user` = :user_id;',
|
||||||
array(
|
array(
|
||||||
'user_id' => $this->id,
|
'user_id' => $this->id,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
->fetchAll();
|
->fetchAll(\PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$wishlists = $result;
|
$wishlists = $result;
|
||||||
|
|
|
@ -238,7 +238,7 @@ class Wishlist
|
||||||
{
|
{
|
||||||
$title = __('Wishlist not found');
|
$title = __('Wishlist not found');
|
||||||
|
|
||||||
if ($this->exists) {
|
if ($this->name) {
|
||||||
$title = $this->name;
|
$title = $this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue