[freeside-commits] freeside/FS/FS/TicketSystem RT_Internal.pm, 1.17, 1.18
Ivan,,,
ivan at wavetail.420.am
Tue Nov 23 17:31:21 PST 2010
Update of /home/cvs/cvsroot/freeside/FS/FS/TicketSystem
In directory wavetail.420.am:/tmp/cvs-serv1433
Modified Files:
RT_Internal.pm
Log Message:
don't attempt to use RT::CurrentUser before RT has been initialized. very weird. RT#10695
Index: RT_Internal.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/TicketSystem/RT_Internal.pm,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -w -d -r1.17 -r1.18
--- RT_Internal.pm 22 Jun 2010 04:15:07 -0000 1.17
+++ RT_Internal.pm 24 Nov 2010 01:31:18 -0000 1.18
@@ -7,7 +7,6 @@
use FS::UID qw(dbh);
use FS::CGI qw(popurl);
use FS::TicketSystem::RT_Libs;
-use RT::CurrentUser;
@ISA = qw( FS::TicketSystem::RT_Libs );
@@ -223,6 +222,9 @@
my $user = $FS::CurrentUser::CurrentUser->username;
+ eval 'use RT::CurrentUser;';
+ die $@ if $@;
+
$session ||= {};
$session->{'CurrentUser'} = RT::CurrentUser->new();
More information about the freeside-commits
mailing list