projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quiet warnings about CGI::param in list context
[freeside.git]
/
httemplate
/
edit
/
process
/
part_event.html
diff --git
a/httemplate/edit/process/part_event.html
b/httemplate/edit/process/part_event.html
index
6c6249c
..
9a244a8
100644
(file)
--- a/
httemplate/edit/process/part_event.html
+++ b/
httemplate/edit/process/part_event.html
@@
-40,6
+40,7
@@
};
} elsif ( $info->{'type'} eq 'freq' ) {
$value = '0' if !length($value) and !$info->{'allow_blank'};
};
} elsif ( $info->{'type'} eq 'freq' ) {
$value = '0' if !length($value) and !$info->{'allow_blank'};
+ $value = '0' if $value =~ /[^\d]/;
$value .= $params->{$cgi_field.'_units'} if length($value);
}
$value .= $params->{$cgi_field.'_units'} if length($value);
}
@@
-75,7
+76,7
@@
}
( $option => $value );
}
}
( $option => $value );
}
- @{ $object->option_fields_listref };
+ @{ $object->option_fields_listref
|| []
};
},
'precheck_callback' => sub {
},
'precheck_callback' => sub {
@@
-91,6
+92,10
@@
$cgi->param('disabled', 'Y');
}
$cgi->param('disabled', 'Y');
}
+ if ( $action eq 'pkg_fee' && !$actionfields{feepart} ) {
+ return "Select a Fee Definition to use this Event Action";
+ }
+
my $balance_age_rx = qr/^(condition.+)\.balance_age\.age$/;
foreach my $param ( keys %{ $cgi->Vars() } ){
my $balance_age_rx = qr/^(condition.+)\.balance_age\.age$/;
foreach my $param ( keys %{ $cgi->Vars() } ){