Do not update _lastChanged on auto-detected attributes

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2022-03-17 12:05:04 +01:00 committed by backportbot[bot]
parent 7c38eec48a
commit 6e1ac0a9bb

View file

@ -262,6 +262,7 @@ class Configuration {
*/
public function saveConfiguration() {
$cta = array_flip($this->getConfigTranslationArray());
$changed = false;
foreach ($this->unsavedChanges as $key) {
$value = $this->config[$key];
switch ($key) {
@ -291,9 +292,12 @@ class Configuration {
if (is_null($value)) {
$value = '';
}
$changed = true;
$this->saveValue($cta[$key], $value);
}
$this->saveValue('_lastChange', time());
if ($changed) {
$this->saveValue('_lastChange', (string)time());
}
$this->unsavedChanges = [];
}