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

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,