Bugzilla – Attachment 51430 Details for
Bug 16428
The framework is not checked to know if a field is mapped
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16428: Use the biblio framework to know if a field is mapped
Bug-16428-Use-the-biblio-framework-to-know-if-a-fi.patch (text/plain), 1.57 KB, created by
Marcel de Rooy
on 2016-05-11 13:54:21 UTC
(
hide
)
Description:
Bug 16428: Use the biblio framework to know if a field is mapped
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2016-05-11 13:54:21 UTC
Size:
1.57 KB
patch
obsolete
>From d951b7686469e2341435d87b250879e6a5b3eecb Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 3 May 2016 11:03:52 +0100 >Subject: [PATCH] Bug 16428: Use the biblio framework to know if a field is > mapped >Content-Type: text/plain; charset=utf-8 > >The subroutine _build_default_values_for_mod_marc takes the >frameworkcode in parameter, but ModItemFromMarc did not pass it. >It uses it to know if a field is mapped or not to a Koha field >(C4::Koha::IsKohaFieldLinked). >Consequently the default framework ("") was always used. > >This bug has been found working on bug 13074 and has been put on a >separate bug report to ease the backport. > >Test plan: >Without this change, the tests added by bug 16428 won't pass > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/Items.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Items.pm b/C4/Items.pm >index 6bb6e67..8ee4169 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -510,7 +510,7 @@ sub ModItemFromMarc { > my $localitemmarc = MARC::Record->new; > $localitemmarc->append_fields( $item_marc->field($itemtag) ); > my $item = &TransformMarcToKoha( $localitemmarc, $frameworkcode, 'items' ); >- my $default_values = _build_default_values_for_mod_marc(); >+ my $default_values = _build_default_values_for_mod_marc($frameworkcode); > foreach my $item_field ( keys %$default_values ) { > $item->{$item_field} = $default_values->{$item_field} > unless exists $item->{$item_field}; >-- >1.7.10.4
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 16428
:
51125
|
51230
|
51327
| 51430 |
51431