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

(cherry picked from commit ba117ba0a6)
This commit is contained in:
Turtle6665 2024-03-15 22:32:10 +01:00 committed by Baptiste Jonglez
parent ade8fc2bb6
commit 4325c53802

View file

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