Bugzilla – Attachment 70730 Details for
Bug 14272
Allow OPAC to show a single news entry
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14272: [FOLLOW-UP] Show single news item
Bug-14272-FOLLOW-UP-Show-single-news-item.patch (text/plain), 1.16 KB, created by
Aleisha Amohia
on 2018-01-18 23:11:16 UTC
(
hide
)
Description:
Bug 14272: [FOLLOW-UP] Show single news item
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2018-01-18 23:11:16 UTC
Size:
1.16 KB
patch
obsolete
>From 20d6297aadaf627a1d4affa89d5a9d7838c680cf Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Tue, 24 Jan 2017 03:31:59 +0000 >Subject: [PATCH] Bug 14272: [FOLLOW-UP] Show single news item > >This patch fixes merge conflicts, an error in the query, and changes the >column name `new` to `content`. This patch is now ready to test. > >Sponsored-by: Catalyst IT >--- > C4/NewsChannels.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/NewsChannels.pm b/C4/NewsChannels.pm >index 5228804..d9463c7 100644 >--- a/C4/NewsChannels.pm >+++ b/C4/NewsChannels.pm >@@ -207,7 +207,7 @@ sub GetNewsToDisplay { > FROM opac_news > LEFT JOIN borrowers on borrowers.borrowernumber = > opac_news.borrowernumber >- WHERE (}; >+ WHERE }; > > if ( defined $id ) { > $query .= q{ opac_news.idnew = ? } if defined $id; >@@ -216,7 +216,7 @@ sub GetNewsToDisplay { > > unless ( defined $time ) { > $query .= q{ AND } if defined $id; >- $query .= q{ >+ $query .= q{ ( > expirationdate >= CURRENT_DATE() > OR expirationdate IS NULL > OR expirationdate = '00-00-0000' >-- >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 14272
:
45721
|
45740
|
45741
|
45818
|
45820
|
45845
|
45846
|
45935
|
45936
|
45937
|
47556
|
47557
|
47558
|
47665
|
47666
|
47667
|
47668
|
47669
|
47670
|
47671
|
47672
|
47673
|
50557
|
50558
|
50559
|
59483
|
70728
|
70729
|
70730
|
70731
|
72065
|
72548
|
72549
|
72550
|
72551
|
76015
|
76307
|
76580
|
76662
|
77546
|
77564
|
77565
|
77566
|
77567
|
77568
|
77569
|
78104
|
78206
|
78207
|
78208
|
78231
|
81643
|
82713
|
83425
|
83426
|
83427
|
83428
|
83429
|
83430
|
84868
|
84869
|
84870
|
84871
|
84872
|
84873
|
84874