mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 17:18:48 -04:00
Do not update _lastChanged on auto-detected attributes
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
f548548924
commit
bd9c4fbc07
1 changed files with 5 additions and 1 deletions
|
|
@ -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 = [];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue