Bugzilla – Attachment 170318 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.79 KB, created by
Owen Leonard
on 2024-08-14 12:34:02 UTC
(
hide
)
Description:
Bug 37629: Link to news are broken
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2024-08-14 12:34:02 UTC
Size:
1.79 KB
patch
obsolete
>From 7941849c209943ba248bd37013bf95a6fd2221c0 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 > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > 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 22a995b516..75182f9149 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.39.2
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