set numbered parameters using entry::set_numbers
This commit is contained in:
@@ -219,11 +219,8 @@ sub check_params {
|
||||
#numeric values
|
||||
$checked->{exclude} = 0;
|
||||
$checked->{duration} = 28;
|
||||
for my $param ( 'id', 'project_id', 'studio_id', 'duration' ) {
|
||||
if ( ( defined $params->{$param} ) && ( $params->{$param} =~ /^\d+$/ ) ) {
|
||||
$checked->{$param} = $params->{$param};
|
||||
}
|
||||
}
|
||||
entry::set_numbers( $checked, $params, [
|
||||
'id', 'project_id', 'studio_id', 'duration']);
|
||||
|
||||
if ( defined $checked->{studio_id} ) {
|
||||
$checked->{default_studio_id} = $checked->{studio_id};
|
||||
|
||||
Reference in New Issue
Block a user