koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/C4 Members.pm [rel_3_0]


From: Bruno Toumi
Subject: [Koha-cvs] koha/C4 Members.pm [rel_3_0]
Date: Thu, 12 Oct 2006 12:34:01 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_3_0
Changes by:     Bruno Toumi <btoumi>    06/10/12 12:34:01

Modified files:
        C4             : Members.pm 

Log message:
        modify wrong sub name (always use in Koha.pm but not same) 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Members.pm?cvsroot=koha&only_with_tag=rel_3_0&r1=1.32.2.5&r2=1.32.2.6

Patches:
Index: Members.pm
===================================================================
RCS file: /sources/koha/koha/C4/Members.pm,v
retrieving revision 1.32.2.5
retrieving revision 1.32.2.6
diff -u -b -r1.32.2.5 -r1.32.2.6
--- Members.pm  12 Oct 2006 10:08:22 -0000      1.32.2.5
+++ Members.pm  12 Oct 2006 12:34:01 -0000      1.32.2.6
@@ -19,7 +19,7 @@
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 # Suite 330, Boston, MA  02111-1307 USA
 
-# $Id: Members.pm,v 1.32.2.5 2006/10/12 10:08:22 btoumi Exp $
+# $Id: Members.pm,v 1.32.2.6 2006/10/12 12:34:01 btoumi Exp $
 
 use strict;
 require Exporter;
@@ -31,7 +31,7 @@
 
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
 
-$VERSION = do { my @v = '$Revision: 1.32.2.5 $' =~ /\d+/g; shift(@v) . "." . 
join( "_", map { sprintf "%03d", $_ } @v ); };
+$VERSION = do { my @v = '$Revision: 1.32.2.6 $' =~ /\d+/g; shift(@v) . "." . 
join( "_", map { sprintf "%03d", $_ } @v ); };
 
 =head1 NAME
 
@@ -60,7 +60,7 @@
   &checkuniquemember &getzipnamecity &getidcity &getguarantordata 
&getcategorytype
   &calcexpirydate &checkuserpassword
   &getboracctrecord
-  &borrowercategories &getborrowercategory
+  &GetborCatFromCatType &getborrowercategory
   &fixEthnicity
   &ethnicitycategories get_institutions add_member_orgs
   &get_age &GetBorrowersFromSurname &GetBranchCodeFromBorrowers
@@ -1207,9 +1207,9 @@
 
 }
 
-=head2 borrowercategories
+=head2 GetborCatFromCatType
 
-  ($codes_arrayref, $labels_hashref) = &borrowercategories();
+  ($codes_arrayref, $labels_hashref) = &GetborCatFromCatType();
 
 Looks up the different types of borrowers in the database. Returns two
 elements: a reference-to-array, which lists the borrower category
@@ -1219,12 +1219,13 @@
 =cut
 
 #'
-sub borrowercategories {
+sub GetborCatFromCatType {
     my ( $category_type, $action ) = @_;
     my $dbh = C4::Context->dbh;
-    my $request;
-    $request =
-"Select categorycode,description from categories where category_type=? order 
by categorycode";
+    my $request =qq|   SELECT categorycode,description 
+                       FROM categories 
+                       WHERE category_type=? 
+                       ORDER BY categorycode|;
     my $sth = $dbh->prepare($request);
     $sth->execute($category_type);
     my %labels;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]