Skip to content

Commit

Permalink
Fix undef warning when user is missing SeeQueue
Browse files Browse the repository at this point in the history
Without the SeeQueue right, fetching the queue name always returns
undef, which triggers a warning when trying to display assets.
  • Loading branch information
Jason Crome committed Aug 20, 2024
1 parent dbc3f55 commit e22b7f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/html/Ticket/Elements/ShowAssets
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ push @linked_assets, grep { defined } map { $_->BaseURI->IsLocal }

my $asset_queue;
if (RT->Config->Get('AssetQueues')) {
$asset_queue = 1 if grep {$_ eq $Ticket->QueueObj->Name} @{RT->Config->Get('AssetQueues')}
$asset_queue = 1 if grep {$_ eq ($Ticket->QueueObj->Name // '')} @{RT->Config->Get('AssetQueues')}
} else {
$asset_queue = 0;
}
Expand Down

0 comments on commit e22b7f8

Please sign in to comment.