Bugzilla – Attachment 58590 Details for
Bug 17847
Move C4::Koha::GetAuthvalueDropbox to Koha::AuthorisedValues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17847: Remove C4::Koha::GetAuthvalueDropbox
Bug-17847-Remove-C4KohaGetAuthvalueDropbox.patch (text/plain), 1.61 KB, created by
Jonathan Druart
on 2017-01-04 14:42:02 UTC
(
hide
)
Description:
Bug 17847: Remove C4::Koha::GetAuthvalueDropbox
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-01-04 14:42:02 UTC
Size:
1.61 KB
patch
obsolete
>From 389009c31603e4246526c7059e1ecd90b9366a07 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 4 Jan 2017 15:41:22 +0100 >Subject: [PATCH] Bug 17847: Remove C4::Koha::GetAuthvalueDropbox > >--- > C4/Koha.pm | 38 -------------------------------------- > 1 file changed, 38 deletions(-) > >diff --git a/C4/Koha.pm b/C4/Koha.pm >index b6e494a..167c424 100644 >--- a/C4/Koha.pm >+++ b/C4/Koha.pm >@@ -967,44 +967,6 @@ sub GetNormalizedOCLCNumber { > return > } > >-sub GetAuthvalueDropbox { >- my ( $authcat, $default ) = @_; >- my $branch_limit = C4::Context->userenv ? C4::Context->userenv->{"branch"} : ""; >- my $dbh = C4::Context->dbh; >- >- my $query = qq{ >- SELECT * >- FROM authorised_values >- }; >- $query .= qq{ >- LEFT JOIN authorised_values_branches ON ( id = av_id ) >- } if $branch_limit; >- $query .= qq{ >- WHERE category = ? >- }; >- $query .= " AND ( branchcode = ? OR branchcode IS NULL )" if $branch_limit; >- $query .= " GROUP BY lib ORDER BY category, lib, lib_opac"; >- my $sth = $dbh->prepare($query); >- $sth->execute( $authcat, $branch_limit ? $branch_limit : () ); >- >- >- my $option_list = []; >- my @authorised_values = ( q{} ); >- while (my $av = $sth->fetchrow_hashref) { >- push @{$option_list}, { >- value => $av->{authorised_value}, >- label => $av->{lib}, >- default => ($default eq $av->{authorised_value}), >- }; >- } >- >- if ( @{$option_list} ) { >- return $option_list; >- } >- return; >-} >- >- > =head2 GetDailyQuote($opts) > > Takes a hashref of options >-- >2.9.3
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 17847
:
58589
|
58590
|
60019
|
60020
|
60982
|
60983