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:
parent
f23f731de2
commit
14a04dd4a5
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue