Bugzilla – Attachment 99493 Details for
Bug 22880
Convert opacheader system preference to news block
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22880: Use placeholders
Bug-22880-Use-placeholders.patch (text/plain), 1.61 KB, created by
Marcel de Rooy
on 2020-02-24 12:16:41 UTC
(
hide
)
Description:
Bug 22880: Use placeholders
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2020-02-24 12:16:41 UTC
Size:
1.61 KB
patch
obsolete
>From 7d119b3a4bc3f462c85fca395a66d7307e63d7d6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 11 Jun 2019 09:31:07 -0500 >Subject: [PATCH] Bug 22880: Use placeholders >Content-Type: text/plain; charset=utf-8 > >Always. > >Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz> > >Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz> > >Signed-off-by: Lisette Scheer <lisettes@latahlibrary.org> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl b/installer/data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl >index bddef51a80..046f018be4 100644 >--- a/installer/data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl >+++ b/installer/data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl >@@ -11,7 +11,7 @@ if( CheckVersion( $DBversion ) ) { > foreach my $lang ( @langs ) { > print "Inserting opacheader contents into $lang news item...\n"; > # If there is a value in the opacheader preference, insert it into opac_news >- $dbh->do("INSERT INTO opac_news (branchcode, lang, title, content ) VALUES (NULL, ?, 'opacheader $lang', ?)", undef, "opacheader_$lang", $opacheader); >+ $dbh->do("INSERT INTO opac_news (branchcode, lang, title, content ) VALUES (NULL, ?, '', ?)", undef, "opacheader_$langs[0]", $opacheader); > } > } > # Remove the opacheader system preference >-- >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 22880
:
89517
|
90495
|
92207
|
92208
|
92592
|
92593
|
92594
|
92600
|
92601
|
92602
|
96209
|
96210
|
96219
|
98773
|
98775
|
98985
|
98986
|
98987
|
98988
|
98989
|
99362
|
99363
|
99364
|
99365
|
99366
|
99367
|
99490
|
99491
|
99492
| 99493 |
99494
|
99495
|
99496
|
99497
|
99498