Bugzilla – Attachment 48612 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.49 KB, created by
Frédéric Demians
on 2016-03-03 09:53:46 UTC
(
hide
)
Description:
Bug 15669 Alphabetize marc modification templates
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2016-03-03 09:53:46 UTC
Size:
1.49 KB
patch
obsolete
>From c2102db9ad5bf7bb622e584e800ead60b965636c 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> >--- > 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.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 15669
:
47304
|
47310
|
47311
|
48219
|
48612
|
48615
|
48616