diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-17 12:05:04 +0100 |
---|---|---|
committer | Côme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com> | 2022-03-31 08:38:05 +0000 |
commit | bd9c4fbc070cf41974900eb1fe03d3b72fcf1e01 (patch) | |
tree | ffbd4427e7562ca52b7070ef4fe357e3ce8e38ed /apps | |
parent | f5485489248d410859048b950ffb5824ae457552 (diff) | |
download | nextcloud-server-bd9c4fbc070cf41974900eb1fe03d3b72fcf1e01.tar.gz nextcloud-server-bd9c4fbc070cf41974900eb1fe03d3b72fcf1e01.zip |
Do not update _lastChanged on auto-detected attributes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/Configuration.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Configuration.php b/apps/user_ldap/lib/Configuration.php index 9ffb2a79781..799ff27a896 100644 --- a/apps/user_ldap/lib/Configuration.php +++ b/apps/user_ldap/lib/Configuration.php @@ -257,6 +257,7 @@ class Configuration { */ public function saveConfiguration(): void { $cta = array_flip($this->getConfigTranslationArray()); + $changed = false; foreach ($this->unsavedChanges as $key) { $value = $this->config[$key]; switch ($key) { @@ -286,9 +287,12 @@ class Configuration { if (is_null($value)) { $value = ''; } + $changed = true; $this->saveValue($cta[$key], $value); } - $this->saveValue('_lastChange', (string)time()); + if ($changed) { + $this->saveValue('_lastChange', (string)time()); + } $this->unsavedChanges = []; } |