mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-04-11 12:50:55 +00:00
parent
08a415870a
commit
22c3cd6d78
1 changed files with 5 additions and 2 deletions
|
@ -71,9 +71,12 @@ class RetailcrmSettings
|
|||
if ($this->validator->validate(true)) {
|
||||
$this->settings->updateValueAll();
|
||||
|
||||
if (array_key_exists('apiKey', $this->settings->getChanged())) {
|
||||
$shopId = Context::getContext()->shop->id;
|
||||
|
||||
if (array_key_exists('apiKey', $this->settings->getChanged())
|
||||
&& !Configuration::get(RetailCRM::CLIENT_ID, null, null, $shopId)) {
|
||||
$this->setClientId();
|
||||
RetailCRM::updateCrmModuleState(Context::getContext()->shop->id);
|
||||
RetailCRM::updateCrmModuleState($shopId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue