[Rt-commit] r18355 - rt/3.8/trunk/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Thu Feb 12 16:37:03 EST 2009
Author: ruz
Date: Thu Feb 12 16:37:03 2009
New Revision: 18355
Modified:
rt/3.8/trunk/lib/RT/Transaction_Overlay.pm
Log:
* set context object when viewing a ticket on txn
Modified: rt/3.8/trunk/lib/RT/Transaction_Overlay.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Transaction_Overlay.pm (original)
+++ rt/3.8/trunk/lib/RT/Transaction_Overlay.pm Thu Feb 12 16:37:03 2009
@@ -979,6 +979,7 @@
# Make sure the user can see the custom field before showing that it changed
elsif ( $type eq 'CustomField' and my $cf_id = $self->__Value('Field') ) {
my $cf = RT::CustomField->new( $self->CurrentUser );
+ $cf->SetContextObject( $self->Object );
$cf->Load( $cf_id );
return 0 unless $cf->CurrentUserHasRight('SeeCustomField');
}
More information about the Rt-commit
mailing list