1728 was tracked down to a situation where the timecard form might submit "0" for project allocation even for hourly billing projects. This changes the form cleaning code to allow that possibility without raising the error message from the bug.
We add a test for the situation that fails in our current code and passes with the fix.
Additional information
There are a couple unrelated changes where or None was removed where it wasn't doing anything.
Description
1728 was tracked down to a situation where the timecard form might submit "0" for project allocation even for hourly billing projects. This changes the form cleaning code to allow that possibility without raising the error message from the bug.
We add a test for the situation that fails in our current code and passes with the fix.
Additional information
There are a couple unrelated changes where
or None
was removed where it wasn't doing anything.Fixes #1728