fix: correct update opencart config after defaults diff update

This commit is contained in:
2025-09-27 00:24:32 +03:00
parent d7dd055e24
commit e24e7c6d10

View File

@@ -544,13 +544,10 @@ HTML,
$this->model_setting_setting->editSetting('module_tgshop', $settings);
$this->log->write('[TELECART] Выполнено обновление настроек по умолчанию для модуля.');
$this->session->data['success'] = 'Выполнено обновление настроек по умолчанию для модуля.';
foreach ($diff as $key => $value) {
$this->config->set($key, $value);
}
}
}
public function install(): void
{
$this->log->write('[TELECART] Запуск установки модуля.');
$this->updateConfigFromDefaults();
$this->log->write('[TELECART] Установка модуля завершена.');
}
}