Re: [rt-users] modifying SelfService

2016-11-04 Thread Stehlík Tomáš
Thank you, it works like a charm. 

May I have another question? Is it possible to modify SelfService to user see 
tickets where is "CC" but not requestor? I've read

https://rt-wiki.bestpractical.com/wiki/OnCreateSetDeptHeadCc

But it seems that patch on bottom of page is for some older version of RT, i am 
using latest. Thank you.

TS

-Original Message-
From: Matt Zagrabelny [mailto:mzagr...@d.umn.edu] 
Sent: Friday, November 4, 2016 2:46 PM
To: Stehlík Tomáš 
Cc: rt-users 
Subject: Re: [rt-users] modifying SelfService

Heya,


On Fri, Nov 4, 2016 at 8:10 AM, Stehlík Tomáš  wrote:
> Hello,
>
>
>
> I have one stupid question – I am trying modify SelfService portal but 
> i am facing that changes into html files are not affecting on the pages.
>
>
>
> For example, modifying
>
>
>
> /opt/rt4/share/html/SelfService/Elements/MyRequests
>
>
>
> I tried to change
>
>
>
> my $Query = "( Watcher.id = $id )";
>
>
>
> to
>
>
>
> my $Query = "( Watcher.id = 2 )";
>
>
>
> (to just see what happens)
>
>
>
> And it’s still same (it shows me only my tickets). Even when I change

You probably need to clear your mason cache:

sudo find /opt/rt4/var/mason_data/obj -mindepth 1 -delete sudo service apache2 
restart

-m

-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Los Angeles - January 9-11 2017

Re: [rt-users] modifying SelfService

2016-11-04 Thread Alex Hall
I'd also add that you may want to not touch the files in the share
directory. You may have a reason for doing it this way that I missed in
your message, but generally, RT likes you to copy these files and then
modify the copies. This is called an "overlay".
https://rt-wiki.bestpractical.com/wiki/CustomizingWithOverlays

You'll want to copy any files you want to change into
[rt_home]/local/html/[original path]. Modify those files, clear your Mason
cache, restart your server, and your changes will take effect. The
advantage is not only that you have the original file, but that you can
revert to it simply by renaming or erasing your modified version.

To change share/html/Tickets/Elements/ShowPriority, for instance, you'd do:

cd /opt/rt4/local
mkdir html
cd html
mkdir Tickets
cd Tickets
mkdir Elements
cd Elements
cp /opt/rt4/share/html/Tickets/Elements/ShowPriority .

You now have a copy of ShowPriority that you can modify as much as you want.

On Fri, Nov 4, 2016 at 9:46 AM, Matt Zagrabelny  wrote:

> Heya,
>
>
> On Fri, Nov 4, 2016 at 8:10 AM, Stehlík Tomáš  wrote:
> > Hello,
> >
> >
> >
> > I have one stupid question – I am trying modify SelfService portal but i
> am
> > facing that changes into html files are not affecting on the pages.
> >
> >
> >
> > For example, modifying
> >
> >
> >
> > /opt/rt4/share/html/SelfService/Elements/MyRequests
> >
> >
> >
> > I tried to change
> >
> >
> >
> > my $Query = "( Watcher.id = $id )";
> >
> >
> >
> > to
> >
> >
> >
> > my $Query = "( Watcher.id = 2 )";
> >
> >
> >
> > (to just see what happens)
> >
> >
> >
> > And it’s still same (it shows me only my tickets). Even when I change
>
> You probably need to clear your mason cache:
>
> sudo find /opt/rt4/var/mason_data/obj -mindepth 1 -delete
> sudo service apache2 restart
>
> -m
> -
> RT 4.4 and RTIR training sessions, and a new workshop day!
> https://bestpractical.com/training
> * Los Angeles - January 9-11 2017
>



-- 
Alex Hall
Automatic Distributors, IT department
ah...@autodist.com
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Los Angeles - January 9-11 2017

Re: [rt-users] modifying SelfService

2016-11-04 Thread Matt Zagrabelny
Heya,


On Fri, Nov 4, 2016 at 8:10 AM, Stehlík Tomáš  wrote:
> Hello,
>
>
>
> I have one stupid question – I am trying modify SelfService portal but i am
> facing that changes into html files are not affecting on the pages.
>
>
>
> For example, modifying
>
>
>
> /opt/rt4/share/html/SelfService/Elements/MyRequests
>
>
>
> I tried to change
>
>
>
> my $Query = "( Watcher.id = $id )";
>
>
>
> to
>
>
>
> my $Query = "( Watcher.id = 2 )";
>
>
>
> (to just see what happens)
>
>
>
> And it’s still same (it shows me only my tickets). Even when I change

You probably need to clear your mason cache:

sudo find /opt/rt4/var/mason_data/obj -mindepth 1 -delete
sudo service apache2 restart

-m
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Los Angeles - January 9-11 2017

Re: [rt-users] modifying SelfService

2016-11-04 Thread Martin Wheldon

Sounds like you need to clear the mason cache and restart RT.

https://rt-wiki.bestpractical.com/wiki/CleanMasonCache

Best Regards

Martin

On 2016-11-04 13:10, Stehlík Tomáš wrote:

Hello,

I have one stupid question - I am trying modify SelfService portal but
i am facing that changes into html files are not affecting on the
pages.

For example, modifying

/opt/rt4/share/html/SelfService/Elements/MyRequests

I tried to change

my $Query = "( Watcher.id = $id )";__

to

my $Query = "( Watcher.id = 2 )";

(to just see what happens)

And it's still same (it shows me only my tickets). Even when I change

$Rows => 50

To

$Rows => 5

There is output with 50 tickets. I think that it can be something
about FCGI and caching but still no luck. If I move whole directory
SelfService away it works (error 404). Can someone kick me to right
direction? Thank you

Tomas Stehlik


-
RT 4.4 and RTIR training sessions, and a new workshop day!
https://bestpractical.com/training
* Los Angeles - January 9-11 2017

-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Los Angeles - January 9-11 2017