diff options
| author | Jonathan Prykop <jonathan@freeside.biz> | 2016-08-03 23:04:05 -0500 |
|---|---|---|
| committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-08-03 23:04:05 -0500 |
| commit | c76dee5b859e969a9a1610be53122981f5690687 (patch) | |
| tree | a1badbab6e4eee518625828e24cf7aaa307b77e3 /httemplate | |
| parent | b9f68ca7d2a521b037995d1512067ac19cf6db7b (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> |
