mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-04-11 12:50:55 +00:00
Fix
This commit is contained in:
parent
5ceae3024d
commit
6cbd5a4762
1 changed files with 3 additions and 3 deletions
|
@ -68,17 +68,17 @@ class RetailcrmSettings
|
|||
*/
|
||||
public function save()
|
||||
{
|
||||
$changed = $this->settings->getChanged();
|
||||
|
||||
if ($this->validator->validate(true)) {
|
||||
$this->settings->updateValueAll();
|
||||
|
||||
if (array_key_exists('apiKey', $changed)) {
|
||||
if (array_key_exists('apiKey', $this->settings->getChanged())) {
|
||||
$this->setClientId();
|
||||
RetailCRM::updateCrmModuleState(Context::getContext()->shop->id);
|
||||
}
|
||||
}
|
||||
|
||||
$changed = $this->settings->getChanged();
|
||||
|
||||
if ($this->consultantScript->issetValue()) {
|
||||
$this->updateConsultantCode();
|
||||
$changed['consultantScript'] = $this->consultantScript->getValueStored();
|
||||
|
|
Loading…
Add table
Reference in a new issue