Script: Cron: add a flush on user update when it's a new user to avoid error when updating extra fields and needing a user Id - refs BT#20864

pull/5797/head
NicoDucou 1 year ago
parent c1aa6cbb63
commit a6274a2d28
  1. 2
      tests/scripts/synchronize_user_base_from_csv.php

@ -212,7 +212,7 @@ foreach ($accessUrls as $accessUrl) {
}
$user->setCreator($creator);
$userRepository->updateUser($user, false);
$userRepository->updateUser($user, $newUser);
foreach ($CSVuser as $fieldName => $fieldValue) {
if (strpos($fieldName, EXTRA_KEY) === 0) {

Loading…
Cancel
Save