Var $session

Hello,

I’m customizing the RT 3.8 quick creation menu on the home page. I want to add the facility
to attach files on quick creation widget…

I start to study the source code of the ticket creation file ( html/Elements/Create.html ), and I don’t understand
where $session is declareted…

Perl “use strict” is in all RT source files… but I don’t find the “my $session” anywhere… I made a grep -rn ‘my $session’ /*… no result…

Please help :slight_smile:

Best Regards,

Marco

Hello,

I’m customizing the RT 3.8 quick creation menu on the home page. I want to
add the facility

to attach files on quick creation widget…

I start to study the source code of the ticket creation file (
html/Elements/Create.html ), and I don’t understand

where $session is declareted…

Perl “use strict” is in all RT source files… but I don’t find the “my
$session” anywhere… I made a grep -rn ‘my $session’ /*… no result…

Please help :slight_smile:

All mason comps are executed in the same package. $session (as well as
$r and $m) is a global variable variable defined with our in that
package.

List of globals available for such use in components is defined
somewhere in lib/RT/Interface/Web/… In lib/RT/Interface/Web.pm you
can find ways to access it from libs.

Best Regards,
Marco


We’re hiring! Careers — Best Practical Solutions

Best regards, Ruslan.