Skip to content

Commit 8c0ec1d

Browse files
committed
Do not update _lastChanged on auto-detected attributes
Signed-off-by: Côme Chilliet <[email protected]>
1 parent 475a859 commit 8c0ec1d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/user_ldap/lib/Configuration.php

Lines changed: 6 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,13 @@ public function saveConfiguration(): void {
286287
if (is_null($value)) {
287288
$value = '';
288289
}
290+
$changed = true;
291+
var_dump($key);
289292
$this->saveValue($cta[$key], $value);
290293
}
291-
$this->saveValue('_lastChange', (string)time());
294+
if ($changed) {
295+
$this->saveValue('_lastChange', (string)time());
296+
}
292297
$this->unsavedChanges = [];
293298
}
294299

0 commit comments

Comments
 (0)