mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 15:06:06 +00:00
Update currency no join in config..
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
namespace Espo\Core\Upgrades\Migrations\V9_4;
|
||||
|
||||
use Espo\Core\Upgrades\Migration\Script;
|
||||
use Espo\Core\Utils\Config\ConfigWriter;
|
||||
use Espo\Entities\Preferences;
|
||||
use Espo\Entities\User;
|
||||
use Espo\ORM\EntityManager;
|
||||
@@ -38,11 +39,13 @@ class AfterUpgrade implements Script
|
||||
{
|
||||
public function __construct(
|
||||
private EntityManager $entityManager,
|
||||
private ConfigWriter $configWriter,
|
||||
) {}
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
$this->updatePreferences();
|
||||
$this->updateConfig();
|
||||
}
|
||||
|
||||
private function updatePreferences(): void
|
||||
@@ -71,4 +74,10 @@ class AfterUpgrade implements Script
|
||||
$this->entityManager->saveEntity($preferences);
|
||||
}
|
||||
}
|
||||
|
||||
private function updateConfig(): void
|
||||
{
|
||||
$this->configWriter->set('currencyNoJoinMode', true);
|
||||
$this->configWriter->save();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ return [
|
||||
'defaultCurrency' => 'USD',
|
||||
'baseCurrency' => 'USD',
|
||||
'currencyRates' => [],
|
||||
'currencyNoJoinMode' => false,
|
||||
'currencyNoJoinMode' => true,
|
||||
'outboundEmailIsShared' => false,
|
||||
'outboundEmailFromName' => 'EspoCRM',
|
||||
'outboundEmailFromAddress' => null,
|
||||
|
||||
Reference in New Issue
Block a user