Bugzilla – Attachment 50369 Details for
Bug 12752
OVERDUE notice mis-labeled as "Hold Available for Pickup"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12752: FIX letter names in 3.15.00.041
Bug-12752-FIX-letter-names-in-31500041.patch (text/plain), 1.72 KB, created by
Chris Cormack
on 2016-04-19 00:30:19 UTC
(
hide
)
Description:
Bug 12752: FIX letter names in 3.15.00.041
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2016-04-19 00:30:19 UTC
Size:
1.72 KB
patch
obsolete
>From 1039fdbf831152374ab282042720499a9cfd82b5 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 6 Apr 2016 15:59:02 +0100 >Subject: [PATCH] Bug 12752: FIX letter names in 3.15.00.041 > >3.15.00.041 was wrong, the name of the letter should not always been the >name of the first HOLD notice. >PREDUE_PHONE should be updated with the first name of the PREDUE notice, >same for OVERDUE_PHONE and OVERDUE > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.z> >--- > installer/data/mysql/updatedatabase.pl | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 422ce69..5bc934a 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -8363,10 +8363,9 @@ if ( CheckVersion($DBversion) ) { > > $DBversion = "3.15.00.041"; > if ( CheckVersion($DBversion) ) { >- my $name = $dbh->selectcol_arrayref(q| >+ my ( $name ) = $dbh->selectrow_array(q| > SELECT name FROM letter WHERE code="HOLD" > |); >- $name = $name->[0]; > $dbh->do(q| > UPDATE letter > SET code="HOLD", >@@ -8375,6 +8374,9 @@ if ( CheckVersion($DBversion) ) { > WHERE code="HOLD_PHONE" > |, {}, $name); > >+ ( $name ) = $dbh->selectrow_array(q| >+ SELECT name FROM letter WHERE code="PREDUE" >+ |); > $dbh->do(q| > UPDATE letter > SET code="PREDUE", >@@ -8383,6 +8385,9 @@ if ( CheckVersion($DBversion) ) { > WHERE code="PREDUE_PHONE" > |, {}, $name); > >+ ( $name ) = $dbh->selectrow_array(q| >+ SELECT name FROM letter WHERE code="OVERDUE" >+ |); > $dbh->do(q| > UPDATE letter > SET code="OVERDUE", >-- >2.1.4
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 12752
:
49990
|
50369
|
50520
|
50879