use entry::element_of to set action parameter

This commit is contained in:
Milan
2020-03-08 15:09:07 +01:00
parent 5c73484638
commit accc9393c7
19 changed files with 53 additions and 141 deletions

View File

@@ -100,7 +100,6 @@ sub check_params {
my $checked = {};
#numeric values
for my $param ('filename') {
if ( ( defined $params->{$param} ) && ( $params->{$param} =~ /^[A-Za-z\_\-\.\d\/]+$/ ) ) {
$checked->{$param} = $params->{$param};
@@ -115,10 +114,9 @@ sub check_params {
}
}
#numeric values
entry::set_numbers( $checked, $params, [
'project_id', 'studio_id', 'series_id', 'event_id'
])
]);
if ( defined $checked->{studio_id} ) {
$checked->{default_studio_id} = $checked->{studio_id};