Skip to content

Commit 076f44e

Browse files
committed
Do not update _lastChanged on auto-detected attributes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 475a859 commit 076f44e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/user_ldap/lib/Configuration.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ public function readConfiguration(): void {
257257
*/
258258
public function saveConfiguration(): void {
259259
$cta = array_flip($this->getConfigTranslationArray());
260+
$changed = false;
260261
foreach ($this->unsavedChanges as $key) {
261262
$value = $this->config[$key];
262263
switch ($key) {
@@ -286,9 +287,12 @@ public function saveConfiguration(): void {
286287
if (is_null($value)) {
287288
$value = '';
288289
}
290+
$changed = true;
289291
$this->saveValue($cta[$key], $value);
290292
}
291-
$this->saveValue('_lastChange', (string)time());
293+
if ($changed) {
294+
$this->saveValue('_lastChange', (string)time());
295+
}
292296
$this->unsavedChanges = [];
293297
}
294298

0 commit comments

Comments
 (0)