[dw-free] create new promo code should have 'active' box checked
[commit: http://hg.dwscoalition.org/dw-free/rev/a07c8d7dd745]
http://bugs.dwscoalition.org/show_bug.cgi?id=3928
Also fix the state properly when editing.
Patch by
fu.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3928
Also fix the state properly when editing.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- htdocs/admin/invites/promo.bml
-------------------------------------------------------------------------------- diff -r 01805f9be836 -r a07c8d7dd745 htdocs/admin/invites/promo.bml --- a/htdocs/admin/invites/promo.bml Fri Oct 28 16:48:04 2011 +0800 +++ b/htdocs/admin/invites/promo.bml Fri Oct 28 17:15:08 2011 +0800 @@ -148,7 +148,7 @@ $code = ""; } else { my $data = { - active => $POST{active} ? 1 : 0, + active => defined( $POST{active} ) ? 1 : 0, code => $code, current_count => 0, max_count => $POST{max_count} || 0, --------------------------------------------------------------------------------