Bugzilla – Attachment 47010 Details for
Bug 15631
Move the cities related code to Koha::Cities - part 2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15631: Koha::Cities - remove getzipnamecity
Bug-15631-KohaCities---remove-getzipnamecity.patch (text/plain), 1.38 KB, created by
Jonathan Druart
on 2016-01-20 16:02:09 UTC
(
hide
)
Description:
Bug 15631: Koha::Cities - remove getzipnamecity
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-01-20 16:02:09 UTC
Size:
1.38 KB
patch
obsolete
>From bc7ad781e59ea5fb29b62f5c7d52865fdffbd3da Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 20 Jan 2016 14:59:48 +0000 >Subject: [PATCH] Bug 15631: Koha::Cities - remove getzipnamecity > >C4::Members::getzipnamecity was not used and can be remove safely. > >Test plan: > git grep getzipnamecity >should not return any result. >--- > C4/Members.pm | 20 -------------------- > 1 file changed, 20 deletions(-) > >diff --git a/C4/Members.pm b/C4/Members.pm >index 4ba1f19..4eaea62 100644 >--- a/C4/Members.pm >+++ b/C4/Members.pm >@@ -66,7 +66,6 @@ BEGIN { > &GetPendingIssues > &GetAllIssues > >- &getzipnamecity > &getidcity > > &GetFirstValidEmailAddress >@@ -1357,25 +1356,6 @@ sub get_cardnumber_length { > return ( $min, $max ); > } > >-=head2 getzipnamecity (OUEST-PROVENCE) >- >-take all info from table city for the fields city and zip >-check for the name and the zip code of the city selected >- >-=cut >- >-sub getzipnamecity { >- my ($cityid) = @_; >- my $dbh = C4::Context->dbh; >- my $sth = >- $dbh->prepare( >- "select city_name,city_state,city_zipcode,city_country from cities where cityid=? "); >- $sth->execute($cityid); >- my @data = $sth->fetchrow; >- return $data[0], $data[1], $data[2], $data[3]; >-} >- >- > =head2 getdcity (OUEST-PROVENCE) > > recover cityid with city_name condition >-- >2.1.0
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 15631
:
47010
|
47011
|
47062
|
47473
|
47474