Changing any settings is prevented when project has existing currency (#1292)

This commit is contained in:
Turtle6665 2024-03-15 22:32:10 +01:00 committed by GitHub
parent 2bb535070a
commit ba117ba0a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -195,7 +195,7 @@ class EditProjectForm(FlaskForm):
raise ValidationError(msg) raise ValidationError(msg)
if ( if (
project is not None project is not None
and field.data != CurrencyConverter.no_currency and field.data != project.default_currency
and project.has_bills() and project.has_bills()
): ):
msg = _( msg = _(