aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/model/state.t
Commit message (Collapse)AuthorAgeLines
* Fix issues with Open/Closed translated too early.v2.2Matthew Somerville2017-09-15-3/+24
| | | | | | | | | | | | | | It was possible for _hardcoded_states to be reached with no locale selected (e.g. bin/update-all-reports), causing an error trying to translate Open/Closed. But translating those there wasn't correct, because that would then be cached and returned even if a different language was being used. Caching was ignored in testing, which did not help. We no longer translate the state names in their objects, only upon display at the point that we will know the locale. We can't simply return the translation of Open/Closed because there may be entries in the translation table as well.
* Remove hardcoded states from Problem model.Matthew Somerville2017-08-31-0/+62
We keep the internal states hardcoded, plus the core open (confirmed) and closed ones, but the remainder are moved to the database.