Fixed url post in module settings

This commit is contained in:
opheugene 2021-04-05 16:44:15 +03:00 committed by GitHub
parent 7fd6ff80a2
commit 95c3e291f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 3 deletions

View File

@ -153,7 +153,7 @@ jobs:
git fetch origin --unshallow --tags
export LAST_TAG=`git describe --abbrev=0 --tags`
export VERSION=`cat VERSION`
export ARCHIVE_NAME=retailcrm-$VERSION.ocmod.zip
export ARCHIVE_NAME=retailcrm-$VERSION.zip
export ARCHIVE_PATH="/tmp/$ARCHIVE_NAME"
export RELEASE_TAG=v$VERSION
export LAST_COMMIT=`git log --oneline --format=%B -n 1 HEAD | head -n 1`

View File

@ -1,3 +1,6 @@
## v3.2.6
* Исправлена ошибка при сохранении настроек модуля на старых версиях PrestaShop
## v3.2.5
* Исправлена ошибка брошенных корзин для Prestashop версии ниже 1.7.1
* Исправлена ошибка при проверке адреса клиента

View File

@ -1 +1 @@
3.2.5
3.2.6

View File

@ -117,6 +117,12 @@ abstract class RetailcrmAbstractTemplate
throw new \RuntimeException("Template not be blank");
}
// set url post for forms
if (empty($this->smarty->getTemplateVars('url_post'))) {
$this->data['url_post'] = $this->smarty->getTemplateVars('current')
.'&token='.$this->smarty->getTemplateVars('token');
}
$this->smarty->assign(\array_merge($this->data, array(
'moduleErrors' => $this->errors,
'moduleWarnings' => $this->warnings,

View File

@ -117,7 +117,7 @@ class RetailCRM extends Module
{
$this->name = 'retailcrm';
$this->tab = 'export';
$this->version = '3.2.5';
$this->version = '3.2.6';
$this->author = 'DIGITAL RETAIL TECHNOLOGIES SL';
$this->displayName = $this->l('retailCRM');
$this->description = $this->l('Integration module for retailCRM');