Bugzilla – Attachment 8912 Details for
Bug 7857
database upgrade fails with plack
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7857 - invalidate cached preferences after SetVersion
Bug-7857---invalidate-cached-preferences-after-Set.patch (text/plain), 1.00 KB, created by
Dobrica Pavlinusic
on 2012-04-05 12:18:34 UTC
(
hide
)
Description:
Bug 7857 - invalidate cached preferences after SetVersion
Filename:
MIME Type:
Creator:
Dobrica Pavlinusic
Created:
2012-04-05 12:18:34 UTC
Size:
1.00 KB
patch
obsolete
>From 026bcc814190c22ef9ddaf7ffe084a1f23564a5c Mon Sep 17 00:00:00 2001 >From: Dobrica Pavlinusic <dpavlin@rot13.org> >Date: Thu, 5 Apr 2012 14:15:30 +0200 >Subject: [PATCH] Bug 7857 - invalidate cached preferences after SetVersion > >This allows plack to correctly move to login page after database upgrade >--- > installer/data/mysql/updatedatabase.pl | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 503c8ee..82cf44a 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -5212,6 +5212,7 @@ sub SetVersion { > my $finish=$dbh->prepare("INSERT into systempreferences (variable,value,explanation) values ('Version',?,'The Koha database version. WARNING: Do not change this value manually, it is maintained by the webinstaller')"); > $finish->execute($kohaversion); > } >+ C4::Context::clear_syspref_cache(); # invalidate cached preferences > } > exit; > >-- >1.7.2.5
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 7857
:
8726
|
8729
| 8912 |
9888
|
10287
|
10345