Bugzilla – Attachment 170266 Details for
Bug 37629
Link to news are broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37629: Link to news are broken
Bug-37629-Link-to-news-are-broken.patch (text/plain), 1.73 KB, created by
Baptiste Wojtkowski (bwoj)
on 2024-08-13 14:55:14 UTC
(
hide
)
Description:
Bug 37629: Link to news are broken
Filename:
MIME Type:
Creator:
Baptiste Wojtkowski (bwoj)
Created:
2024-08-13 14:55:14 UTC
Size:
1.73 KB
patch
obsolete
>From d9227b8048ef58236f201342053168583b94f7e7 Mon Sep 17 00:00:00 2001 >From: Baptiste Wojtkowski <bski@laposte.net> >Date: Tue, 13 Aug 2024 16:39:04 +0200 >Subject: [PATCH] Bug 37629: Link to news are broken > >When browsing news in the opac (opac-main.pl), links in the titles of news are broken. The id pasted in the link is the id from the additional_contents_localizations instead of the id from additional_contents. > >TEST PLAN: >1 - In intranet create a news with multiple languages >2 - Create a second news >3 - In OPAC, the link of the title of the second news (and maybe the first) should be broken >APPLY PATCH >4 - In OPAC, the link of the title of both news should work >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >index 22a995b..75182f9 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >@@ -95,7 +95,7 @@ > [% IF ( news_item ) %] > [% koha_new.title | html %] > [% ELSE %] >- <a id="newsitem[% koha_new.id | html %]" href="/cgi-bin/koha/opac-main.pl?news_id=[% koha_new.id | uri %]">[% koha_new.title | html %]</a> >+ <a id="newsitem[% koha_new.additional_content.id | html %]" href="/cgi-bin/koha/opac-main.pl?news_id=[% koha_new.additional_content.id | uri %]">[% koha_new.title | html %]</a> > [% END %] > </h4> > <div class="newsbody">[% koha_new.content | $raw %]</div> >-- >2.43.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 37629
:
170266
|
170318
|
170426