Closed apparentlymart closed 12 years ago
Guess this is just because January is stored as 0 but the template only checks truthiness, not nullitude?
{% if not party.end_month %}
Ooh, huh. IIRC it's storing months as 0-based so it's probably a truthiness check somewhere.
On Saturday, April 7, 2012 at 12:23 PM, Martin Atkins wrote:
When editing a participation, setting the end date to January in any year (as far as I can tell) causes it to be treated as not set at all.
Observed here: http://makerbase.neologasm.org/project/livejournal
Trying to set my participation to end in 2007-01 causes it to be treated as not set at all, but setting it to end in 2007-02 works. Also tried 2006-01 and it too was treated as nothing.
Reply to this email directly or view it on GitHub: https://github.com/markpasc/makerbase/issues/13
I fixed that check to look at the year instead and it appears to work. That will still fail if you try to end a participation in year 0 but that's probably okay for now. The fix is on the live site.
When editing a participation, setting the end date to January in any year (as far as I can tell) causes it to be treated as not set at all.
Observed here: http://makerbase.neologasm.org/project/livejournal
Trying to set my participation to end in 2007-01 causes it to be treated as not set at all, but setting it to end in 2007-02 works. Also tried 2006-01 and it too was treated as nothing.