Skip Menu |

This queue is for tickets about the RT-Extension-Announce CPAN distribution.

Report information
The Basics
Id: 84711
Status: resolved
Priority: 0/
Queue: RT-Extension-Announce

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.06
Fixed in: (no value)



Subject: announces are not displayed in the SelfService web interface
When logged in via the SelfService web interface, announces are not displayed. I fixed this with the following patch : --- RT-Extension-Announce-0.06/html/Callbacks/RT-Extension-Announce/Elements/PageLayout/BeforeBody.orig 2012-10-29 23:45:57.000000000 +0900 +++ RT-Extension-Announce-0.06/html/Callbacks/RT-Extension-Announce/Elements/PageLayout/BeforeBody 2013-04-18 13:04:25.233278785 +0900 @@ -97,7 +97,7 @@ </table></div> <%INIT> # Only display on Homepage -return unless ( $m->request_comp->path =~ /^\/index.html$/ ); +return unless ( ($m->request_comp->path =~ /^\/index.html$/ ) || ($m->request_comp->path =~ /^\/SelfService\/index.html$/ )); my @tickets = RT::Extension::Announce::GetAnnouncements($session{CurrentUser});
On Thu Apr 18 00:22:34 2013, https://www.google.com/accounts/o8/id?id=AItOawmaUsY-RtHS2_Ev6nBiL49DnhfBSjEE3sg wrote: Show quoted text
> When logged in via the SelfService web interface, announces are not > displayed.
Thanks for sending this along. Some variation of this may be in the next version, possibly with a configuration option. Show quoted text
> > I fixed this with the following patch : > > --- RT-Extension-Announce-0.06/html/Callbacks/RT-Extension- > Announce/Elements/PageLayout/BeforeBody.orig 2012-10-29 > 23:45:57.000000000 +0900 > +++ RT-Extension-Announce-0.06/html/Callbacks/RT-Extension- > Announce/Elements/PageLayout/BeforeBody 2013-04-18 13:04:25.233278785 > +0900 > @@ -97,7 +97,7 @@ > </table></div> > <%INIT> > # Only display on Homepage > -return unless ( $m->request_comp->path =~ /^\/index.html$/ ); > +return unless ( ($m->request_comp->path =~ /^\/index.html$/ ) || ($m-
> >request_comp->path =~ /^\/SelfService\/index.html$/ ));
> > my @tickets = > RT::Extension::Announce::GetAnnouncements($session{CurrentUser}); >
SelfService was added in release 0.07.