From be09fe73542b076c36cc909413a374a518083237 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 16 Aug 2023 10:41:41 +0200 Subject: [PATCH] fix dry-run is not counting updated or created users --- api/src/Accounts/Import.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/Accounts/Import.php b/api/src/Accounts/Import.php index 5aae69d57c..9f4c5ecb85 100644 --- a/api/src/Accounts/Import.php +++ b/api/src/Accounts/Import.php @@ -300,6 +300,7 @@ class Import if ($dry_run) { $this->logger("Dry-run: would created user '$account[account_lid]' (#$account[account_id])", 'detail'); + $new = true; } elseif (($account_id = $sql_account['account_id'] = $this->accounts_sql->save($sql_account, true)) > 0) { @@ -351,6 +352,7 @@ class Import { $this->logger("Dry-run: would updated user '$account[account_lid]' (#$account_id): " . json_encode($diff, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), 'detail'); + $new = false; } else {