You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TagsConverter simply calls String#split(String) which creates an array which only contains the empty string when the input is empty.
That data is then simply passed along further with no validation anywhere.
Because of this that empty string gets saved in the database.
As a work around EditBudgetForm removes the first element of the tags list, if it's not empty.
This means the following steps are necessary to remedy the error:
Fix TagsConverter to properly handle empty input
Create a migration that removes the invalid data
Remove the work around from EditBudgetForm
The text was updated successfully, but these errors were encountered:
TagsConverter
simply callsString#split(String)
which creates an array which only contains the empty string when the input is empty.That data is then simply passed along further with no validation anywhere.
Because of this that empty string gets saved in the database.
As a work around
EditBudgetForm
removes the first element of the tags list, if it's not empty.This means the following steps are necessary to remedy the error:
TagsConverter
to properly handle empty inputEditBudgetForm
The text was updated successfully, but these errors were encountered: