Bug 37261: Fix returning additional fields of unmapped tablename

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Pedro Amorim 2024-07-05 12:03:58 +00:00 committed by Katrin Fischer
parent f23f731de2
commit 14a04dd4a5
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ sub to_api {
my $json = $self->SUPER::to_api($params);
$json->{resource_type} = $table_to_resource->{ $self->tablename };
$json->{resource_type} = $table_to_resource->{ $self->tablename } || $self->tablename;
return $json;
}