This commit is contained in:
Sergey 2019-02-13 10:16:49 +03:00
parent 72edb2767a
commit 0cea41e48f
3 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,6 @@
## v2.2.11
* Добавлена валидация доменов pro и es в адресах retailCRM
## v2.2.10
* исправление передачи цены доставки в CRM

View File

@ -1 +1 @@
2.2.10
2.2.11

View File

@ -3,7 +3,7 @@
* @author Retail Driver LCC
* @copyright RetailCRM
* @license GPL
* @version 2.2.10
* @version 2.2.11
* @link https://retailcrm.ru
*
*/
@ -38,7 +38,7 @@ class RetailCRM extends Module
{
$this->name = 'retailcrm';
$this->tab = 'export';
$this->version = '2.2.10';
$this->version = '2.2.11';
$this->author = 'Retail Driver LCC';
$this->displayName = $this->l('RetailCRM');
$this->description = $this->l('Integration module for RetailCRM');
@ -835,7 +835,7 @@ class RetailCRM extends Module
private function validateCrmAddress($address)
{
if (preg_match("/https:\/\/(.*).retailcrm.ru/", $address) === 1) {
if (preg_match("/https:\/\/(.*).retailcrm.(pro|ru|es)/", $address) === 1) {
return true;
}