Skip to content

Commit

Permalink
Fix array to string conversion for Nosto sorting option (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
olsi-qose authored Jun 1, 2020
1 parent fc52536 commit 7977ec3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

### 1.2.1
* Fix bug related to Nosto sorting option in admin category page

### 1.2.0
* Add tagging for module version
* Add fragment to product urls served by CMP
Expand Down
2 changes: 1 addition & 1 deletion Plugin/Catalog/Model/Sortby.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function afterGetAllOptions( // phpcs:ignore Generic.CodeAnalysis.UnusedF
) {
// new option
$customOption = [
['label' => __(['Relevance']), 'value' => NostoHelperSorting::NOSTO_PERSONALIZED_KEY]
['label' => __('Relevance'), 'value' => NostoHelperSorting::NOSTO_PERSONALIZED_KEY]
];

// merge default sorting options with custom options
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nosto/module-nostocmp",
"description": "Nosto Category Merchandising extension for Magento 2",
"type": "magento2-module",
"version": "1.2.0",
"version": "1.2.1",
"require-dev": {
"php": ">=7.1.0",
"magento-ecg/coding-standard": "3.*",
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<!--suppress XmlUnboundNsPrefix -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Nosto_Cmp" setup_version="1.2.0">
<module name="Nosto_Cmp" setup_version="1.2.1">
<sequence>
<module name="Nosto_Tagging"/>
</sequence>
Expand Down

0 comments on commit 7977ec3

Please sign in to comment.