diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-08-03 23:04:05 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-08-29 16:48:11 -0500 |
commit | 501210e1bbf79d8a9d6308257124c44a261bf379 (patch) | |
tree | ae011f729abfa2fb3481b126df0a406d50769e4a /httemplate | |
parent | bcaab65d7ce645ea7fef8361fe57fbcde532b0ab (diff) |
RT#42043: Check for cancelled packages with a cancellation date age option [age_newest options]
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/edit/process/part_event.html | 4 | ||||
-rw-r--r-- | httemplate/elements/tr-freq.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/edit/process/part_event.html b/httemplate/edit/process/part_event.html index bac69241c..0293af886 100644 --- a/httemplate/edit/process/part_event.html +++ b/httemplate/edit/process/part_event.html @@ -39,8 +39,8 @@ split(/\0/, $value) }; } elsif ( $info->{'type'} eq 'freq' ) { - $value = '0' if !length($value); - $value .= $params->{$cgi_field.'_units'}; + $value = '0' if !length($value) and !$info->{'allow_blank'}; + $value .= $params->{$cgi_field.'_units'} if length($value); } #warn "value of $cgi_field is $value\n"; diff --git a/httemplate/elements/tr-freq.html b/httemplate/elements/tr-freq.html index cb58bf6b5..795684cf7 100644 --- a/httemplate/elements/tr-freq.html +++ b/httemplate/elements/tr-freq.html @@ -15,7 +15,7 @@ <% $freq eq $units ? 'SELECTED' : '' %> ><% $freq{$freq} %> % } - </SELECT> + </SELECT><% $opt{'post_text'} || '' %> </TD> |