Bugzilla – Attachment 87758 Details for
Bug 21891
Remove non-XSLT detail view in the staff client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21891: (follow-up) Update database to set blank values to "default"
Bug-21891-follow-up-Update-database-to-set-blank-v.patch (text/plain), 1.59 KB, created by
Katrin Fischer
on 2019-04-11 12:03:34 UTC
(
hide
)
Description:
Bug 21891: (follow-up) Update database to set blank values to "default"
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-04-11 12:03:34 UTC
Size:
1.59 KB
patch
obsolete
>From e8c34bf70bf11a05b542863955bb542fcbc7660c Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 11 Apr 2019 11:03:20 +0000 >Subject: [PATCH] Bug 21891: (follow-up) Update database to set blank values to > "default" > >This patch adds a database update which will update any blank values of >the XSLTDetailsDisplay system preference to "default." Although a blank >value will still result in the default XSLT view, it's more consistent >with the other XSLT preferences to use "default." > >To test, apply the patch and set the XSLTDetailsDisplay to a blank >value. Run the database update. The value of the XSLTDetailsDisplay >system preference should now be "default." > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../data/mysql/atomicupdate/bug_21891-remove-non-xslt-detail.perl | 6 ++++++ > 1 file changed, 6 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_21891-remove-non-xslt-detail.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_21891-remove-non-xslt-detail.perl b/installer/data/mysql/atomicupdate/bug_21891-remove-non-xslt-detail.perl >new file mode 100644 >index 0000000000..80d66ec57f >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_21891-remove-non-xslt-detail.perl >@@ -0,0 +1,6 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do( "UPDATE systempreferences SET value = 'default' WHERE variable = 'XSLTDetailsDisplay' AND value = ''" ); >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 29891 - Remove non-XSLT detail view in the staff client)\n"; >+} >-- >2.11.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 21891
:
87664
|
87677
|
87757
| 87758