[Rt-commit] [rtir] 15/19: Use RT::IR->StrictConstituencyLinking to decide when to restrict RTIR's list of queues for creating or moving tickets.

Jesse Vincent jesse at bestpractical.com
Wed Mar 25 00:20:59 EDT 2015


This is an automated email from the git hooks/post-receive script.

jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.

commit 8c5a8719230e9ad79e7552ebec69cace61736c9d
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Mar 24 20:34:39 2015 -0700

    Use RT::IR->StrictConstituencyLinking to decide when to restrict
    RTIR's list of queues for creating or moving tickets.
---
 html/RTIR/Create.html                   | 2 +-
 html/RTIR/Edit.html                     | 2 +-
 html/RTIR/Incident/Create.html          | 2 +-
 html/RTIR/Investigation/Elements/Create | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/html/RTIR/Create.html b/html/RTIR/Create.html
index e137b72..dadf216 100644
--- a/html/RTIR/Create.html
+++ b/html/RTIR/Create.html
@@ -105,7 +105,7 @@
                 Default => $ARGS{'Queue'} || $QueueObj->Id,
                 ShowNullOption => 0,
                 Lifecycle => $QueueObj->Lifecycle,
-                LimitToConstituency => 1,
+                LimitToConstituency => (RT::IR->StrictConstituencyLinking ? 1:0),
                 Constituency => $constituency
             }
         },
diff --git a/html/RTIR/Edit.html b/html/RTIR/Edit.html
index b6efb5f..e09cc29 100644
--- a/html/RTIR/Edit.html
+++ b/html/RTIR/Edit.html
@@ -98,7 +98,7 @@
     <td class="value"><& /RTIR/Elements/SelectRTIRQueue,
         Name => 'Queue', Default => $ARGS{'Queue'} || $Ticket->Queue,
         TicketObj => $Ticket, Lifecycle => $Ticket->QueueObj->Lifecycle,
-        LimitToConstituency => 1,
+        LimitToConstituency => ($m->{'RTIR_ConstituencyFilter'} || RT::IR->StrictConstituencyLinking) ? 1 : 0,
         Constituency => $Ticket->QueueObj->FirstCustomFieldValue('RTIR Constituency')
     &></td>
   </tr>
diff --git a/html/RTIR/Incident/Create.html b/html/RTIR/Incident/Create.html
index 314f0b2..14052f5 100644
--- a/html/RTIR/Incident/Create.html
+++ b/html/RTIR/Incident/Create.html
@@ -112,7 +112,7 @@ if ( $ChildObj && !$ChildObj->CurrentUserHasRight('ModifyTicket') ) {
                 Name => 'Queue',
                 Default => $ARGS{'Queue'} || $QueueObj->Id,
                 Lifecycle => RT::IR->lifecycle_incident,
-                LimitToConstituency => $constituency ? 1:0,
+                LimitToConstituency => ($m->{'RTIR_ConstituencyFilter'} || RT::IR->StrictConstituencyLinking ) ? 1:0,
                 Constituency => $constituency
     &>
   </td>
diff --git a/html/RTIR/Investigation/Elements/Create b/html/RTIR/Investigation/Elements/Create
index dd17ad9..7be6eab 100644
--- a/html/RTIR/Investigation/Elements/Create
+++ b/html/RTIR/Investigation/Elements/Create
@@ -64,7 +64,7 @@
                 Name => $NamePrefix.'Queue',
                 Default => $ARGS{'Queue'} || $QueueObj->Id,
                 Lifecycle => RT::IR->lifecycle_investigation,
-                LimitToConstituency => $Constituency ? 1 : 0,
+                LimitToConstituency => ($m->{'RTIR_ConstituencyFilter'} || RT::IR->StrictConstituencyLinking ) ? 1:0,
                 Constituency => $Constituency
     &>
   </td>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list