Bugzilla – Attachment 168532 Details for
Bug 37261
api/v1/extended_attribute_types does not return additional fields for unmapped tablenames
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37261: Fix returning additional fields of unmapped tablename
Bug-37261-Fix-returning-additional-fields-of-unmap.patch (text/plain), 765 bytes, created by
Pedro Amorim
on 2024-07-05 12:14:27 UTC
(
hide
)
Description:
Bug 37261: Fix returning additional fields of unmapped tablename
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-07-05 12:14:27 UTC
Size:
765 bytes
patch
obsolete
>From 6e893da6f3b2f527df2c74498eaa74d59f867880 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Fri, 5 Jul 2024 12:03:58 +0000 >Subject: [PATCH] Bug 37261: Fix returning additional fields of unmapped > tablename > >--- > Koha/AdditionalField.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/AdditionalField.pm b/Koha/AdditionalField.pm >index e3b675bc62..25d6808c16 100644 >--- a/Koha/AdditionalField.pm >+++ b/Koha/AdditionalField.pm >@@ -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; > } >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37261
:
168531
|
168532
|
168567
|
168568
|
168669
|
168670