Commit 4db66137 authored by Kevin Falcone's avatar Kevin Falcone
Browse files

Use the correct Queue for existing tickets

Before, we would use the Queue passed to rt-mailgate --queue
but we might be modifying a ticket in a completely different queue,
which would affect which CFs are available
parent 3b19692a
......@@ -266,6 +266,12 @@ sub GetCurrentUser {
# we want the queue the ticket is currently in, not the queue
# that was passed to rt-mailgate, otherwise we can't find the
# proper set of Custom Fields. But, we have to do this after
# we potentially update the Queue from @REGULAR_ATTRIBUTES
$queue = $ticket_as_user->QueueObj();
foreach my $attribute (@DATE_ATTRIBUTES) {
next unless ( $cmds{ lc $attribute } );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment