Bugzilla – Attachment 48615 Details for
Bug 15669
alphabetize marc modification pulldowns
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15669: Alphabetize marc modification templates
Bug-15669-Alphabetize-marc-modification-templates.patch (text/plain), 1.56 KB, created by
Jonathan Druart
on 2016-03-03 10:30:31 UTC
(
hide
)
Description:
Bug 15669: Alphabetize marc modification templates
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-03-03 10:30:31 UTC
Size:
1.56 KB
patch
obsolete
>From ee3dfbaf1464d43077f0334b8a6feea6cfce21f7 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 18 Feb 2016 16:40:47 +0000 >Subject: [PATCH] Bug 15669: Alphabetize marc modification templates >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This patch sorts the modification templates when getting them from the >database This affects the pages below: > > tools/batch_record_modification.pl > tools/marc_modification.pl > tools/stage-marc-import.pl > >To test: > >1 - Add some marc modification templates in a non alpha order (Shoes, > Hats, Cats) >2 - visit the pages above and note the templates are in order > added >3 - apply patch >4 - visit the three pages and note correct order >5 - verify all tools continue to work as expected > >Signed-off-by: Frédéric Demians <f.demians@tamil.fr> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > C4/MarcModificationTemplates.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/MarcModificationTemplates.pm b/C4/MarcModificationTemplates.pm >index 203f445..d72b870 100644 >--- a/C4/MarcModificationTemplates.pm >+++ b/C4/MarcModificationTemplates.pm >@@ -77,7 +77,7 @@ sub GetModificationTemplates { > warn("C4::MarcModificationTemplates::GetModificationTemplates( $template_id )") if DEBUG; > > my $dbh = C4::Context->dbh; >- my $sth = $dbh->prepare("SELECT * FROM marc_modification_templates"); >+ my $sth = $dbh->prepare("SELECT * FROM marc_modification_templates ORDER BY name"); > $sth->execute(); > > my @templates; >-- >2.7.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 15669
:
47304
|
47310
|
47311
|
48219
|
48612
| 48615 |
48616