Fix database saving default values to global_values when multisite was set to "no"

This commit is contained in:
Théophile Diot 2023-05-10 09:45:54 -04:00
parent 64789276ac
commit cf26d7aa22
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 5 additions and 0 deletions

View File

@ -569,6 +569,11 @@ class Database:
)
if global_value is None:
if value == setting.default or (
not value.strip() and setting.default is None
):
continue
to_put.append(
Global_values(
setting_id=key,