Skip to content

Commit

Permalink
Merge branch '5.0/fix-5-0-4-custom-roles-upgrade-bug' into 5.0-trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnavy committed Aug 25, 2023
2 parents 0072407 + d94c166 commit 0803894
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/RT/Record/Role/LookupType.pm
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Returns a localized description of the LookupType of this record

sub FriendlyLookupType {
my $self = shift;
my $lookup = shift || $self->LookupType;
my $lookup = shift || $self->LookupType || 'RT::Queue-RT::Ticket';

my $class = blessed($self) || $self;

Expand Down Expand Up @@ -208,7 +208,7 @@ object.

sub RecordClassFromLookupType {
my $self = shift;
my $type = shift || $self->LookupType;
my $type = shift || $self->LookupType || 'RT::Queue-RT::Ticket';
my ($class) = ($type =~ /^([^-]+)/);
unless ( $class ) {
if (blessed($self) and $self->LookupType eq $type) {
Expand Down Expand Up @@ -237,7 +237,7 @@ object.

sub ObjectTypeFromLookupType {
my $self = shift;
my $type = shift || $self->LookupType;
my $type = shift || $self->LookupType || 'RT::Queue-RT::Ticket';
my ($class) = ($type =~ /([^-]+)$/);
unless ( $class ) {
if (blessed($self) and $self->LookupType eq $type) {
Expand Down

0 comments on commit 0803894

Please sign in to comment.