Bugzilla – Attachment 55182 Details for
Bug 17249
Koha::AuthorisedValues - Remove GetKohaAuthorisedValuesFromField
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17249: GetKohaAuthorisedValuesFromField - rm GetAuthValCodeFromField
Bug-17249-GetKohaAuthorisedValuesFromField---rm-Ge.patch (text/plain), 1.49 KB, created by
Jonathan Druart
on 2016-09-05 15:20:56 UTC
(
hide
)
Description:
Bug 17249: GetKohaAuthorisedValuesFromField - rm GetAuthValCodeFromField
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-09-05 15:20:56 UTC
Size:
1.49 KB
patch
obsolete
>From 0bbb3de1713bfd5e751ea2791108d98e4ac107d0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 10 Aug 2016 09:10:52 +0100 >Subject: [PATCH] Bug 17249: GetKohaAuthorisedValuesFromField - rm > GetAuthValCodeFromField > >The subroutine GetAuthValCodeFromField was only used from >GetKohaAuthorisedValuesFromField. > >Test plan: > git grep GetAuthValCodeFromField >should not return any occurrences. >--- > C4/Koha.pm | 24 ------------------------ > 1 file changed, 24 deletions(-) > >diff --git a/C4/Koha.pm b/C4/Koha.pm >index e2d3b69..6fa4cc4 100644 >--- a/C4/Koha.pm >+++ b/C4/Koha.pm >@@ -971,30 +971,6 @@ sub GetAuthValCode { > return $authvalcode; > } > >-=head2 GetAuthValCodeFromField >- >- $authvalcode = GetAuthValCodeFromField($field,$subfield,$frameworkcode); >- >-C<$subfield> can be undefined >- >-=cut >- >-sub GetAuthValCodeFromField { >- my ($field,$subfield,$fwcode) = @_; >- my $dbh = C4::Context->dbh; >- $fwcode='' unless $fwcode; >- my $sth; >- if (defined $subfield) { >- $sth = $dbh->prepare('select authorised_value from marc_subfield_structure where tagfield=? and tagsubfield=? and frameworkcode=?'); >- $sth->execute($field,$subfield,$fwcode); >- } else { >- $sth = $dbh->prepare('select authorised_value from marc_tag_structure where tagfield=? and frameworkcode=?'); >- $sth->execute($field,$fwcode); >- } >- my ($authvalcode) = $sth->fetchrow_array; >- return $authvalcode; >-} >- > =head2 GetAuthorisedValues > > $authvalues = GetAuthorisedValues([$category]); >-- >2.8.1
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 17249
:
55176
|
55177
|
55178
|
55179
|
55180
|
55181
|
55182
|
55428
|
55429
|
55430
|
55431
|
55432
|
55433
|
55434
|
56380
|
56381
|
56382
|
56383
|
56384
|
56385
|
56386