Skip to content

Commit

Permalink
Merge pull request #198 from sendsmaily/release/3.0.x-1.5.2
Browse files Browse the repository at this point in the history
Release 1.5.2 for 3.0.x
  • Loading branch information
tomkabel authored Jan 27, 2021
2 parents f60a848 + 800cf40 commit 8b6d3eb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

### 1.5.2

- Fix undefined index error for RSS product limit - [[#190](https://github.com/sendsmaily/smaily-opencart-module/issues/190)]
- Fix validation error not showing if RSS product limit higher than 250 - [[#193](https://github.com/sendsmaily/smaily-opencart-module/pull/193)]

### 1.5.1

- Fix RSS feed not displaying product title and description correctly - [[#167](https://github.com/sendsmaily/smaily-opencart-module/issues/167)]
Expand Down
2 changes: 1 addition & 1 deletion install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modification>
<code>smaily_for_opencart_extension</code>
<name>Smaily for OpenCart</name>
<version>1.5.1</version>
<version>1.5.2</version>
<author>Smaily</author>
<link>https://github.com/sendsmaily/smaily-opencart-module</link>
</modification>
12 changes: 6 additions & 6 deletions upload/admin/controller/extension/module/smaily_for_opencart.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* Plugin Name: Smaily for OpenCart
* Description: Smaily email marketing and automation extension plugin for OpenCart.
* Version: 1.5.1
* Version: 1.5.2
* License: GPL3
* Author: Smaily
* Author URI: https://smaily.com/
Expand All @@ -32,7 +32,7 @@
require_once(DIR_SYSTEM . 'library/smailyforopencart/request.php');
class ControllerExtensionModuleSmailyForOpencart extends Controller {
private $error = array();
private $version = '1.5.1';
private $version = '1.5.2';

public function index() {
// Add language file.
Expand Down Expand Up @@ -571,10 +571,10 @@ protected function validate() {
}

// Validate RSS product limit value
if (isset($this->request->post['smaily_for_opencart_rss_limit'])
&& (int) $this->request->post['smaily_for_opencart_rss_limit'] < 1
|| (int) $this->request->post['smaily_for_opencart_rss_limit'] > 250
) {
if (isset($this->request->post['module_smaily_for_opencart_rss_limit'])
&& ((int) $this->request->post['module_smaily_for_opencart_rss_limit'] < 1
|| (int) $this->request->post['module_smaily_for_opencart_rss_limit'] > 250
)) {
$this->error['rss_limit'] = $this->language->get('rss_limit_error');
}
return !$this->error;
Expand Down

0 comments on commit 8b6d3eb

Please sign in to comment.