[Rt-commit] r3938 - in rt/branches/3.4-RELEASE: . lib/RT
robert at bestpractical.com
robert at bestpractical.com
Fri Oct 7 00:20:15 EDT 2005
Author: robert
Date: Fri Oct 7 00:20:15 2005
New Revision: 3938
Modified:
rt/branches/3.4-RELEASE/ (props changed)
rt/branches/3.4-RELEASE/lib/RT/Ticket_Overlay.pm
Log:
r3995 at bear: rspier | 2005-10-06 21:19:24 -0700
[fsck.com #7067] - If we can't find a customfield that the user is allowed to see on a ticket, don't return any values, (when specifying a custom field)
Modified: rt/branches/3.4-RELEASE/lib/RT/Ticket_Overlay.pm
==============================================================================
--- rt/branches/3.4-RELEASE/lib/RT/Ticket_Overlay.pm (original)
+++ rt/branches/3.4-RELEASE/lib/RT/Ticket_Overlay.pm Fri Oct 7 00:20:15 2005
@@ -3705,6 +3705,10 @@
$cf->LoadByNameAndQueue( Name => $field, Queue => '0' );
}
$field = $cf->id;
+ unless ( $field =~ /^\d+$/ ) {
+ # If we didn't find a valid cfid, give up.
+ return RT::CustomFieldValues->new($self->CurrentUser);
+ }
}
return $self->SUPER::CustomFieldValues($field);
}
More information about the Rt-commit
mailing list