Bugzilla – Attachment 40365 Details for
Bug 14422
Typographical error in updatedatabase.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14422: Typo in updatedatabase.pl
Bug-14422-Typo-in-updatedatabasepl.patch (text/plain), 1.75 KB, created by
Mark Tompsett
on 2015-06-19 13:05:14 UTC
(
hide
)
Description:
Bug 14422: Typo in updatedatabase.pl
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2015-06-19 13:05:14 UTC
Size:
1.75 KB
patch
obsolete
>From d0d369388044014788703a47d83ce5f5fde4dc07 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Fri, 19 Jun 2015 09:00:33 -0400 >Subject: [PATCH] Bug 14422: Typo in updatedatabase.pl > >TEST PLAN >--------- >1) backup db >2) drop db and create blank one >3) git checkout -b my_3.6.x origin/3.6.x >4) run web installer >5) set HomeorHoldingBranch system preference to 'holdingbranch'. >6) git reset --hard origin/master >7) ./installer/data/mysql/updatedatabase.pl >8) check HomeorHoldingBranch systempreference > -- incorrectly upgraded to homebranch! >9) repeat steps 3-6 >10) apply this patch >11) repeat steps 7-8 > -- should have stayed holdingbranch! >12) run koha qa test tools >--- > installer/data/mysql/updatedatabase.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index ee76d7d..74004b9 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -5007,7 +5007,7 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { > $dbh->do("ALTER TABLE default_branch_item_rules ADD > COLUMN `returnbranch` varchar(15) default NULL AFTER `holdallowed`"); > # set the default rule to the current value of HomeOrHoldingBranchReturn (default to 'homebranch' if need be) >- my $homeorholdingbranchreturn = C4::Context->prefernce('HomeOrHoldingBranchReturn') || 'homebranch'; >+ my $homeorholdingbranchreturn = C4::Context->preference('HomeOrHoldingBranchReturn') || 'homebranch'; > $dbh->do("UPDATE default_circ_rules SET returnbranch = '$homeorholdingbranchreturn'"); > print "Upgrade to $DBversion done (Atomic update for OAI-PMH sets management)\n"; > SetVersion($DBversion); >-- >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 14422
:
40365
|
40380
|
40385
|
40409
|
40420
|
40462