[Bps-public-commit] RT-Extension-MandatoryOnTransition branch, master, updated. 0.14-9-g546ec7f

? sunnavy sunnavy at bestpractical.com
Tue Sep 18 12:02:33 EDT 2018


The branch, master has been updated
       via  546ec7ff0da724c9717766fb872168b3d7f53687 (commit)
      from  0770ae188bd3c6ce1b0200b90c58926ca4388181 (commit)

Summary of changes:
 lib/RT/Extension/MandatoryOnTransition.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 546ec7ff0da724c9717766fb872168b3d7f53687
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Sep 18 23:56:43 2018 +0800

    No need to check permission to get queue name from ticket in RequiredFields
    
    The queue name here is only used to get the corresponding entry in
    MandatoryOnTransition config.

diff --git a/lib/RT/Extension/MandatoryOnTransition.pm b/lib/RT/Extension/MandatoryOnTransition.pm
index 509ad80..b29f5b4 100644
--- a/lib/RT/Extension/MandatoryOnTransition.pm
+++ b/lib/RT/Extension/MandatoryOnTransition.pm
@@ -298,7 +298,7 @@ sub RequiredFields {
     );
 
     if ($args{Ticket}) {
-        $args{Queue} ||= $args{Ticket}->QueueObj->Name;
+        $args{Queue} ||= $args{Ticket}->QueueObj->__Value('Name');
         $args{From}  ||= $args{Ticket}->Status;
     }
     my ($from, $to) = @args{qw(From To)};

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list