Skip to content

Commit

Permalink
Do not update _lastChanged on auto-detected attributes
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Mar 17, 2022
1 parent 475a859 commit 8c0ec1d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/user_ldap/lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ public function readConfiguration(): void {
*/
public function saveConfiguration(): void {
$cta = array_flip($this->getConfigTranslationArray());
$changed = false;
foreach ($this->unsavedChanges as $key) {
$value = $this->config[$key];
switch ($key) {
Expand Down Expand Up @@ -286,9 +287,13 @@ public function saveConfiguration(): void {
if (is_null($value)) {
$value = '';
}
$changed = true;
var_dump($key);
$this->saveValue($cta[$key], $value);
}
$this->saveValue('_lastChange', (string)time());
if ($changed) {
$this->saveValue('_lastChange', (string)time());
}
$this->unsavedChanges = [];
}

Expand Down

0 comments on commit 8c0ec1d

Please sign in to comment.