Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-03-17 14:05:04 +0300
committerCôme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com>2022-03-31 11:38:05 +0300
commitbd9c4fbc070cf41974900eb1fe03d3b72fcf1e01 (patch)
treeffbd4427e7562ca52b7070ef4fe357e3ce8e38ed /apps/user_ldap
parentf5485489248d410859048b950ffb5824ae457552 (diff)
Do not update _lastChanged on auto-detected attributes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/Configuration.php6
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 = [];
}