Skip to content
Snippets Groups Projects
Verified Commit df228f9b authored by Damien's avatar Damien
Browse files

FEAT #14849 TIME 0 Fix update entities

parent 908f4932
No related branches found
No related tags found
No related merge requests found
...@@ -268,7 +268,7 @@ class EntityController ...@@ -268,7 +268,7 @@ class EntityController
$externalId['alfrescoPassword'] = PasswordModel::encrypt(['password' => $data['externalId']['alfrescoPassword']]); $externalId['alfrescoPassword'] = PasswordModel::encrypt(['password' => $data['externalId']['alfrescoPassword']]);
} }
} }
$data['external_id'] = json_encode($externalId); $data['external_id'] = !empty($externalId) ? json_encode($externalId) : '{}';
EntityModel::update(['set' => $data, 'where' => ['entity_id = ?'], 'data' => [$aArgs['id']]]); EntityModel::update(['set' => $data, 'where' => ['entity_id = ?'], 'data' => [$aArgs['id']]]);
HistoryController::add([ HistoryController::add([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment