From f37bc7d46bcf32bac0b24374a86299bef0673138 Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 2 Jul 2019 16:09:25 +0300 Subject: [PATCH] external account token renewal fix --- application/Espo/Core/ExternalAccount/ClientManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Espo/Core/ExternalAccount/ClientManager.php b/application/Espo/Core/ExternalAccount/ClientManager.php index cdbcf7f8f9..ef076e66fe 100644 --- a/application/Espo/Core/ExternalAccount/ClientManager.php +++ b/application/Espo/Core/ExternalAccount/ClientManager.php @@ -69,7 +69,7 @@ class ClientManager $externalAccountEntity = $this->clientMap[$hash]['externalAccountEntity']; $externalAccountEntity->set('accessToken', $data['accessToken']); $externalAccountEntity->set('tokenType', $data['tokenType']); - $this->getEntityManager()->saveEntity($externalAccountEntity); + $this->getEntityManager()->saveEntity($externalAccountEntity, ['isTokenRenewal' => true]); } }