Lines 53-61
sub list {
Link Here
|
53 |
|
53 |
|
54 |
return try { |
54 |
return try { |
55 |
my $additional_fields_set = Koha::AdditionalFields->new; |
55 |
my $additional_fields_set = Koha::AdditionalFields->new; |
56 |
if ($resource_type) { |
56 |
if ($resource_type && $resource_to_table->{$resource_type}) { |
57 |
$additional_fields_set = |
57 |
$additional_fields_set = |
58 |
$additional_fields_set->search( { tablename => $resource_to_table->{$resource_type} } ); |
58 |
$additional_fields_set->search( { tablename => $resource_to_table->{$resource_type} } ); |
|
|
59 |
} elsif ($resource_type) { |
60 |
$additional_fields_set = |
61 |
$additional_fields_set->search( { tablename => $resource_type } ); |
62 |
}else{ |
63 |
$additional_fields_set = |
64 |
$additional_fields_set->search(); |
59 |
} |
65 |
} |
60 |
|
66 |
|
61 |
return $c->render( |
67 |
return $c->render( |