Skip to content

Commit

Permalink
Merge pull request #178 from PrestaShop/dev
Browse files Browse the repository at this point in the history
Release 2.1.1
  • Loading branch information
atomiix authored Jun 24, 2022
2 parents 4feccca + b3ec4b8 commit a11c76e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
1 change: 0 additions & 1 deletion _dev/front/js/components/Create/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@
.wishlist {
&-create {
.wishlist-modal {
display: block;
opacity: 0;
pointer-events: none;
z-index: 0;
Expand Down
2 changes: 1 addition & 1 deletion blockwishlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __construct()
{
$this->name = 'blockwishlist';
$this->tab = 'front_office_features';
$this->version = '2.1.0';
$this->version = '2.1.1';
$this->author = 'PrestaShop';
$this->need_instance = 0;

Expand Down
4 changes: 2 additions & 2 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<module>
<name>blockwishlist</name>
<displayName><![CDATA[Wishlist block]]></displayName>
<version><![CDATA[2.1.0]]></version>
<version><![CDATA[2.1.1]]></version>
<description><![CDATA[Adds a block containing the customer&#039;s wishlists.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[front_office_features]]></tab>
<is_configurable>0</is_configurable>
<is_configurable>1</is_configurable>
<need_instance>0</need_instance>
<limited_countries></limited_countries>
</module>
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/Search/WishListProductSearchProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
use Product;
use Shop;
use Symfony\Component\Translation\TranslatorInterface;
use Validate;
use WishList;

/**
Expand Down Expand Up @@ -167,7 +168,10 @@ private function getProductsOrCount(

if ('products' === $type) {
$sortOrder = $query->getSortOrder()->toLegacyOrderBy(true);
$querySearch->orderBy($sortOrder . ' ' . $query->getSortOrder()->toLegacyOrderWay());
$sortWay = $query->getSortOrder()->toLegacyOrderWay();
if (Validate::isOrderBy($sortOrder) && Validate::isOrderWay($sortWay)) {
$querySearch->orderBy($sortOrder . ' ' . $sortWay);
}
$querySearch->limit((int) $query->getResultsPerPage(), ((int) $query->getPage() - 1) * (int) $query->getResultsPerPage());
$products = $this->db->executeS($querySearch);

Expand Down

0 comments on commit a11c76e

Please sign in to comment.